]> git.eshelyaron.com Git - emacs.git/commit
Let other imenu functions work if lsp server's doesn't
authorJoão Távora <joaotavora@gmail.com>
Tue, 12 Nov 2019 08:51:09 +0000 (08:51 +0000)
committerJoão Távora <joaotavora@gmail.com>
Fri, 15 Nov 2019 19:20:47 +0000 (19:20 +0000)
commit1f784797d86dd86625be3ed14226e795f031d2cd
tree4fabe47473caf0f34530e0028a6a3ad90ce3f454
parentb5f02979b6c4a6f8b57279768258a5884e1fac5a
Let other imenu functions work if lsp server's doesn't

* eglot.el (eglot--stay-out-of-p): New helper.
(eglot--setq-saving): Use it.
(eglot--managed-mode): Use add-function :before-until for
imenu-create-index-function.
(eglot-imenu): Don't error.  Fix indentation.

GitHub-reference: fix https://github.com/joaotavora/eglot/issues/343
lisp/progmodes/eglot.el