summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Távora <joaotavora@gmail.com>2023-03-16 14:05:42 +0000
committerJoão Távora <joaotavora@gmail.com>2023-03-16 14:09:00 +0000
commit7385c991dff3466b37cf50628e7685cd53e71921 (patch)
tree8cdde67d9d4a7f1eaf63558060f93f7cbc75adc7
parent1961bdb52edc3c0b96fe9e479ea2d9da1f76b14c (diff)
downloademacs-7385c991dff.tar.gz
Also exempt eglot-inlay-hints-mode from desktop.el's fumblings
Reported in https://github.com/joaotavora/eglot/discussions/1183. * lisp/progmodes/eglot.el (desktop): Also exempt eglot-inlay-hints-mode from desktop.el fumblings.
-rw-r--r--lisp/progmodes/eglot.el10
1 files changed, 4 insertions, 6 deletions
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index 5c61a444fd3..52bba717a67 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -3654,13 +3654,11 @@ If NOERROR, return predicate, else erroring function."
;;; 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'
+;; Emacs bug#56407, the optimal solution is in desktop.el, but that's
+;; harder. For now, use `with-eval-after-load'. See also github#1183.
(with-eval-after-load 'desktop
- (add-to-list 'desktop-minor-mode-handlers '(eglot--managed-mode . ignore)))
+ (add-to-list 'desktop-minor-mode-handlers '(eglot--managed-mode . ignore))
+ (add-to-list 'desktop-minor-mode-handlers '(eglot-inlay-hints-mode . ignore)))
;;; Misc