]> git.eshelyaron.com Git - emacs.git/commitdiff
Unbreak basic imenu functionality
authorJoão Távora <joaotavora@gmail.com>
Mon, 25 Jun 2018 12:02:03 +0000 (13:02 +0100)
committerJoão Távora <joaotavora@gmail.com>
Mon, 25 Jun 2018 12:14:59 +0000 (13:14 +0100)
* eglot.el (eglot--managed-mode): Add missing quote to
imenu-create-index-function.

GitHub-reference: per https://github.com/joaotavora/eglot/issues/31

lisp/progmodes/eglot.el

index ce335433516017948d9f979abb3c612608a0e7bf..f8574e9428e547ca0ef7783b96f66730447f38f1 100644 (file)
@@ -692,7 +692,7 @@ If optional MARKERS, make markers."
     (add-hook 'completion-at-point-functions #'eglot-completion-at-point nil t)
     (add-function :before-until (local 'eldoc-documentation-function)
                   #'eglot-eldoc-function)
-    (add-function :around (local imenu-create-index-function) #'eglot-imenu))
+    (add-function :around (local 'imenu-create-index-function) #'eglot-imenu))
    (t
     (remove-hook 'flymake-diagnostic-functions 'eglot-flymake-backend t)
     (remove-hook 'after-change-functions 'eglot--after-change t)
@@ -705,7 +705,7 @@ If optional MARKERS, make markers."
     (remove-hook 'completion-at-point-functions #'eglot-completion-at-point t)
     (remove-function (local 'eldoc-documentation-function)
                      #'eglot-eldoc-function)
-    (remove-function (local imenu-create-index-function) #'eglot-imenu)
+    (remove-function (local 'imenu-create-index-function) #'eglot-imenu)
     (setq eglot--current-flymake-report-fn nil))))
 
 (defun eglot--managed-mode-onoff (server arg)