[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot f9c986ffd8 2/2: Fix #990: prevent desktop.el from
From: |
ELPA Syncer |
Subject: |
[elpa] externals/eglot f9c986ffd8 2/2: Fix #990: prevent desktop.el from saving/restoring eglot--managed-mode |
Date: |
Thu, 7 Jul 2022 07:57:31 -0400 (EDT) |
branch: externals/eglot
commit f9c986ffd826a34cb5da81936a44dab93cb11b9c
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@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
;;;