]> git.eshelyaron.com Git - emacs.git/commit
Don't block in eglot-imenu if performing non-essential task
authorJoão Távora <joaotavora@gmail.com>
Tue, 22 Dec 2020 17:35:08 +0000 (17:35 +0000)
committerJoão Távora <joaotavora@gmail.com>
Tue, 22 Dec 2020 17:35:08 +0000 (17:35 +0000)
commit7443bcf612c8df48004a9729f3a3514b985913bf
tree9246a081fa3ab307823d19481b021b6e7e5ea9c0
parente36fe5985153effff3cba7328ae3b6f0bd771147
Don't block in eglot-imenu if performing non-essential task

eglot-imenu is used by imenu which in turn is used by which-func-mode
called from an idle timer.  We don't want it to block in that
situation.  Latest which-func mode now sets "non-essential" when
performing its duties, so we leverage that in eglot-imenu.

* eglot.el (eglot-imenu): Use non-essential.

GitHub-reference: close https://github.com/joaotavora/eglot/issues/212
lisp/progmodes/eglot.el