Skip to content

Use standard dabbrev completions for company mode #838

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 30, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions haskell-completions.el
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,6 @@ Returns nil if no completions available."
;; for completions list in case of module name or
;; identifier prefixes
(haskell-completions-sync-complete-repl pfx imp)))))
(when (or (equal '("") lst)
(eql nil lst))
;; complete things using dabbrev
(setq lst (haskell-completions-dabbrev-completions pfx)))
(when lst
(list beg end lst)))))))

Expand All @@ -266,11 +262,5 @@ function is supposed for internal use."
(concat "import " prefix)
prefix)))

(defun haskell-completions-dabbrev-completions (prefix)
"Return completion list for PREFIX using dabbrev facility.
This function is supposed for internal use."
(dabbrev--reset-global-variables)
(dabbrev--find-all-expansions prefix nil))

(provide 'haskell-completions)
;;; haskell-completions.el ends here