From 5b66bec822823636e09dfef74919c733ded9f1e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Mon, 25 Jun 2018 13:02:03 +0100 Subject: [PATCH] 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 --- lisp/progmodes/eglot.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.2