branch: externals/eglot commit f9c986ffd826a34cb5da81936a44dab93cb11b9c Author: João Távora <joaotav...@gmail.com> Commit: João Távora <joaotav...@gmail.com>
Fix #990: prevent desktop.el from saving/restoring eglot--managed-mode Although desktop.el compatibility is Emacs bug#56407, the optimal solution agreed to there is a bit more work than what I have time to right now. See e.g. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=bug%2356407#68. For now, just use `with-eval-after-load' * eglot.el (Hacks desktop): Add eglot--managed-mode to desktop-minor-mode-handlers --- eglot.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/eglot.el b/eglot.el index eb5b86ed10..1b9c997d25 100644 --- a/eglot.el +++ b/eglot.el @@ -3170,6 +3170,17 @@ If NOERROR, return predicate, else erroring function." `(,self () (re-search-forward ,(concat "\\=" arg)) (,next))) +;;; Hacks +;;; +;; FIXME: Although desktop.el compatibility is Emacs bug#56407, the +;; optimal solution agreed to there is a bit more work than what I +;; have time to right now. See +;; e.g. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=bug%2356407#68. +;; For now, just use `with-eval-after-load' +(with-eval-after-load 'desktop + (add-to-list 'desktop-minor-mode-handlers '(eglot--managed-mode . ignore))) + + ;;; Obsolete ;;;