From: João Távora Date: Thu, 30 Mar 2023 18:47:00 +0000 (+0100) Subject: Eglot: ensure server shutdown turns off eglot-inlay-hints-mode X-Git-Tag: emacs-29.0.90~55 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0622e1f29f6e4c7a361f5e78ac09bed6466c4b57;p=emacs.git Eglot: ensure server shutdown turns off eglot-inlay-hints-mode * lisp/progmodes/eglot.el (eglot--managed-mode-off): Turn off eglot-inlay-hints-mode. --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index b4116dc4aaf..3f5245397a0 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -1886,6 +1886,7 @@ Use `eglot-managed-p' to determine if current buffer is managed.") (defun eglot--managed-mode-off () "Turn off `eglot--managed-mode' unconditionally." (remove-overlays nil nil 'eglot--overlay t) + (eglot-inlay-hints-mode -1) (eglot--managed-mode -1)) (defun eglot-current-server ()