Skip to content

Commit a67b0a2

Browse files
committed
Merge pull request #733 from geraldus/ac-improvements
Replace old completion function with new one
2 parents f2a8e0b + 8ecc18c commit a67b0a2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

haskell.el

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
(require 'haskell-sandbox)
2929
(require 'haskell-modules)
3030
(require 'haskell-string)
31+
(require 'haskell-completions)
3132

3233
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3334
;; Basic configuration hooks
@@ -54,8 +55,14 @@
5455
"Minor mode for enabling haskell-process interaction."
5556
:lighter " Interactive"
5657
:keymap interactive-haskell-mode-map
57-
(add-hook 'completion-at-point-functions 'haskell-process-completions-at-point nil t))
58-
58+
(add-hook 'completion-at-point-functions
59+
#'haskell-completions-sync-completions-at-point
60+
nil
61+
t))
62+
63+
(make-obsolete #'haskell-process-completions-at-point
64+
#'haskell-completions-sync-completions-at-point
65+
"June 19, 2015")
5966
(defun haskell-process-completions-at-point ()
6067
"A completion-at-point function using the current haskell process."
6168
(when (haskell-session-maybe)

0 commit comments

Comments
 (0)