From eb7702b61de9f5683c5dfe66f77723f92d630433 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Wed, 25 Jul 2018 18:19:13 +0000 Subject: [PATCH] Fix messages of eglot-ensure * eglot.el (eglot-ensure): fix messages. GitHub-reference: per https://github.com/joaotavora/eglot/issues/48 --- lisp/progmodes/eglot.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index cb9a5ed0515..6a6a1b7f2bb 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -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 -- 2.39.2