emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/eglot 616ad53 13/62: Close #48: be less verbose when us


From: Stefan Monnier
Subject: [elpa] externals/eglot 616ad53 13/62: Close #48: be less verbose when using eglot-ensure
Date: Sat, 29 Sep 2018 17:13:29 -0400 (EDT)

branch: externals/eglot
commit 616ad53676365c5aa1e4cb91c46a2585d907917b
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    Close #48: be less verbose when using eglot-ensure
    
    * eglot.el (eglot-ensure): Don't message when a buffer is already
    managed.
---
 eglot.el | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/eglot.el b/eglot.el
index 77f370e..695db49 100644
--- a/eglot.el
+++ b/eglot.el
@@ -137,7 +137,7 @@ lasted more than that many seconds."
   :type '(choice (boolean :tag "Whether to inhibit autoreconnection")
                  (integer :tag "Number of seconds")))
 
-
+
 ;;; API (WORK-IN-PROGRESS!)
 ;;;
 (cl-defmacro eglot--with-live-buffer (buf &rest body)
@@ -225,7 +225,7 @@ lasted more than that many seconds."
   :documentation
   "Represents a server. Wraps a process for LSP communication.")
 
-
+
 ;;; Process management
 (defvar eglot--servers-by-project (make-hash-table :test #'equal)
   "Keys are projects.  Values are lists of processes.")
@@ -417,9 +417,7 @@ 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 "Buffer is already managed by existing `%s'"
-                                (eglot--project-nickname 
(eglot--current-server)))
+            (unless eglot--managed-mode
               (let ((server (apply #'eglot--connect (eglot--guess-contact))))
                 (eglot--message
                  "Automatically started `%s' to manage `%s' buffers in project 
`%s'"



reply via email to

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