Skip to content

Replace old completion function with new one #733

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 2 commits into from
Jun 20, 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
11 changes: 9 additions & 2 deletions haskell.el
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
(require 'haskell-sandbox)
(require 'haskell-modules)
(require 'haskell-string)
(require 'haskell-completions)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Basic configuration hooks
Expand All @@ -54,8 +55,14 @@
"Minor mode for enabling haskell-process interaction."
:lighter " Interactive"
:keymap interactive-haskell-mode-map
(add-hook 'completion-at-point-functions 'haskell-process-completions-at-point nil t))

(add-hook 'completion-at-point-functions
#'haskell-completions-sync-completions-at-point
nil
t))

(make-obsolete #'haskell-process-completions-at-point
#'haskell-completions-sync-completions-at-point
"June 19, 2015")
(defun haskell-process-completions-at-point ()
"A completion-at-point function using the current haskell process."
(when (haskell-session-maybe)
Expand Down