emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 7ad5d9babed: Eglot: restore eldoc-documentation-functions on sh


From: João Távora
Subject: emacs-29 7ad5d9babed: Eglot: restore eldoc-documentation-functions on shutdown
Date: Wed, 22 Feb 2023 13:49:25 -0500 (EST)

branch: emacs-29
commit 7ad5d9babed68ddb8cc4bdf7571fdf10e44e1bae
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    Eglot: restore eldoc-documentation-functions on shutdown
    
    * lisp/progmodes/eglot.el (eglot--managed-mode): Restore
    eldoc-documentation-functions when shutting down eglot.
---
 lisp/progmodes/eglot.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index f528b334c12..3daca24a586 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -1799,6 +1799,8 @@ Use `eglot-managed-p' to determine if current buffer is 
managed.")
     (remove-hook 'change-major-mode-hook #'eglot--managed-mode-off t)
     (remove-hook 'post-self-insert-hook 'eglot--post-self-insert-hook t)
     (remove-hook 'pre-command-hook 'eglot--pre-command-hook t)
+    (remove-hook 'eldoc-documentation-functions #'eglot-hover-eldoc-function t)
+    (remove-hook 'eldoc-documentation-functions 
#'eglot-signature-eldoc-function t)
     (cl-loop for (var . saved-binding) in eglot--saved-bindings
              do (set (make-local-variable var) saved-binding))
     (remove-function (local 'imenu-create-index-function) #'eglot-imenu)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]