]> git.eshelyaron.com Git - emacs.git/commitdiff
Eglot: restore eldoc-documentation-functions on shutdown
authorJoão Távora <joaotavora@gmail.com>
Wed, 22 Feb 2023 18:50:46 +0000 (18:50 +0000)
committerJoão Távora <joaotavora@gmail.com>
Wed, 22 Feb 2023 18:50:58 +0000 (18:50 +0000)
* lisp/progmodes/eglot.el (eglot--managed-mode): Restore
eldoc-documentation-functions when shutting down eglot.

lisp/progmodes/eglot.el

index f528b334c122a5aa48e1e7bdd99a1238deac8844..3daca24a5864efbe8ca86587f0a3d21450e8c2a5 100644 (file)
@@ -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)