merlin
merlin copied to clipboard
emacs: auto-complete mode is not working after upgrading from 4.1-412 to 4.2-412
Here is the part of my config related to merlin:
;; autocomplete
(require 'auto-complete)
(define-key ac-mode-map (kbd "M-TAB") 'auto-complete)
;; Merlin
(let ((opam-share (ignore-errors (car (process-lines "opam" "var" "share")))))
(when (and opam-share (file-directory-p opam-share))
(add-to-list 'load-path (expand-file-name "emacs/site-lisp" opam-share))
(autoload 'merlin-mode "merlin" nil t nil)
(autoload 'merlin-iedit "merlin-iedit" nil t nil)
(require 'merlin)
(require 'merlin-iedit)
(add-hook 'tuareg-mode-hook 'merlin-mode t)
(add-hook 'caml-mode-hook 'merlin-mode t)
(defun evil-custom-merlin-iedit ()
(interactive)
(if iedit-mode (iedit-mode)
(merlin-iedit-occurrences)))
(define-key merlin-mode-map (kbd "M-r") 'evil-custom-merlin-iedit)
(setq merlin-use-auto-complete-mode 'easy)
(setq merlin-command 'opam)))
I upgraded from 4.1-412 to 4.2-412 and now M-TAB does not show the auto-complete side-tab anymore but only the *Completion* buffer from the bottom of the screen.
Before:
After:

ok after reading the diff and the changes to the README I realised that the auto-complete mode had been moved to a different module. However such a change should have been added to the post-message in the opam file on opam-repository so that users get notified about this change.
@kit-ty-kate I think I've just hit this issue ; what fix did you apply to recover auto-completion in emacs?
So apparently the right runes to add to .emacs are now:
(require 'merlin-ac)
(setq merlin-ac-setup 'easy)