]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix messages of eglot-ensure
authorJoão Távora <joaotavora@gmail.com>
Wed, 25 Jul 2018 18:19:13 +0000 (18:19 +0000)
committerGitHub <noreply@github.com>
Wed, 25 Jul 2018 18:19:13 +0000 (18:19 +0000)
* eglot.el (eglot-ensure): fix messages.

GitHub-reference: per https://github.com/joaotavora/eglot/issues/48

lisp/progmodes/eglot.el

index cb9a5ed0515a13ec9325b24ce8aa3ea7c82c51d9..6a6a1b7f2bbaf768cf30fe8b8cdc5995a694c9be 100644 (file)
@@ -417,13 +417,12 @@ INTERACTIVE is t if called interactively."
           (remove-hook 'post-command-hook #'maybe-connect nil)
           (eglot--with-live-buffer buffer
             (if eglot--managed-mode
-                (eglot--message "%s is already managed by existing `%s'"
-                                buffer
+                (eglot--message "Buffer is already managed by existing `%s'"
                                 (eglot--project-nickname (eglot--current-server)))
               (let ((server (apply #'eglot--connect (eglot--guess-contact))))
                 (eglot--message
                  "Automatically started `%s' to manage `%s' buffers in project `%s'"
-                 (eglot--project-nickname server)
+                 (jsonrpc-name server)
                  major-mode
                  (eglot--project-nickname server)))))))
       (when buffer-file-name