]> git.eshelyaron.com Git - emacs.git/commitdiff
Amend last Eglot commit (bug#62065)
authorJoão Távora <joaotavora@gmail.com>
Sun, 12 Mar 2023 19:30:53 +0000 (19:30 +0000)
committerJoão Távora <joaotavora@gmail.com>
Sun, 12 Mar 2023 19:30:53 +0000 (19:30 +0000)
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

index 758be48868065c8160606926dcf1833b7125c80a..18b44e502df3a03a2424e86970b059f311345343 100644 (file)
@@ -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)