From: João Távora Date: Wed, 25 Jul 2018 18:19:13 +0000 (+0000) Subject: Fix messages of eglot-ensure X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~471 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=eb7702b61de9f5683c5dfe66f77723f92d630433;p=emacs.git Fix messages of eglot-ensure * eglot.el (eglot-ensure): fix messages. GitHub-reference: per https://github.com/joaotavora/eglot/issues/48 --- 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