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

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

[elpa] 1.2 7342d88 054/101: Close #115: Don't block kill-buffer-hook if


From: Christian Johansson
Subject: [elpa] 1.2 7342d88 054/101: Close #115: Don't block kill-buffer-hook if server somehow hangs
Date: Thu, 29 Apr 2021 15:08:59 -0400 (EDT)

tag: 1.2
commit 7342d8833cefa88ffe0d4e34cdfed38c70c4a4b1
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    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]