]> git.eshelyaron.com Git - emacs.git/commit
Eglot: don't auto-shutdown when reverting of single managed buffer
authorJoão Távora <joaotavora@gmail.com>
Wed, 29 Jan 2025 08:37:37 +0000 (08:37 +0000)
committerEshel Yaron <me@eshelyaron.com>
Thu, 30 Jan 2025 18:13:20 +0000 (19:13 +0100)
commit69d105f3bf83c653a8e1b5433203fd037f7c70f5
treeab5cbd5d917c2c70143abb79e9101ddc6e53f5ac
parent4742fab0482448ecb08f08536d53fd12d05f5261
Eglot: don't auto-shutdown when reverting of single managed buffer

When eglot-autoshutdown is t and the only reason we're
considering it is because of a revert (which tears down Eglot's
minor mode as if by killing), detect that situation and
purposedly cancel the shutdown.

* lisp/progmodes/eglot.el (eglot--managed-mode): Tweak.

(cherry picked from commit 142fe5ace4e5d4ed667505f73fc95757a764d530)
lisp/progmodes/eglot.el