From: João Távora Date: Mon, 25 Jun 2018 12:02:03 +0000 (+0100) Subject: Unbreak basic imenu functionality X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~485 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5b66bec822823636e09dfef74919c733ded9f1e5;p=emacs.git Unbreak basic imenu functionality * eglot.el (eglot--managed-mode): Add missing quote to imenu-create-index-function. GitHub-reference: per https://github.com/joaotavora/eglot/issues/31 --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index ce335433516..f8574e9428e 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -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)