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

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

[elpa] externals/eglot f482c3e 60/62: Close #115: Don't block kill-buffe


From: Stefan Monnier
Subject: [elpa] externals/eglot f482c3e 60/62: Close #115: Don't block kill-buffer-hook if server somehow hangs
Date: Sat, 29 Sep 2018 17:13:38 -0400 (EDT)

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

    Close #115: Don't block kill-buffer-hook if server somehow hangs
    
    * eglot.el (eglot--signal-textDocument/didClose): Use
    with-demoted-errors.
---
 eglot.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/eglot.el b/eglot.el
index 1a70254..959cc5d 100644
--- a/eglot.el
+++ b/eglot.el
@@ -1223,9 +1223,11 @@ When called interactively, use the currently active 
server"
 
 (defun eglot--signal-textDocument/didClose ()
   "Send textDocument/didClose to server."
-  (jsonrpc-notify
-   (eglot--current-server-or-lose)
-   :textDocument/didClose `(:textDocument ,(eglot--TextDocumentIdentifier))))
+  (with-demoted-errors
+      "[eglot] error sending textDocument/didClose: %s"
+    (jsonrpc-notify
+     (eglot--current-server-or-lose)
+     :textDocument/didClose `(:textDocument 
,(eglot--TextDocumentIdentifier)))))
 
 (defun eglot--signal-textDocument/willSave ()
   "Send textDocument/willSave to server."



reply via email to

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