emacs-diffs
[Top][All Lists]
Advanced

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

emacs-29 4a603c98499: Amend last Eglot commit (bug#62065)


From: João Távora
Subject: emacs-29 4a603c98499: Amend last Eglot commit (bug#62065)
Date: Sun, 12 Mar 2023 15:30:06 -0400 (EDT)

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

    Amend last Eglot commit (bug#62065)
    
    The fix contained a spurious check for this-command that shouldn't
    have made it in..
    
    * lisp/progmodes/eglot.el (eglot-ensure): Don't check this-command.
---
 lisp/progmodes/eglot.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index 758be488680..18b44e502df 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -1159,8 +1159,7 @@ INTERACTIVE is t if called interactively."
              (remove-hook 'post-command-hook #'maybe-connect t)
              (unless eglot--managed-mode
                (apply #'eglot--connect (eglot--guess-contact))))))
-      (when (and this-command
-                 buffer-file-name)
+      (when buffer-file-name
         (add-hook 'post-command-hook #'maybe-connect 'append t)))))
 
 (defun eglot-events-buffer (server)



reply via email to

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