From 11debd99a758647e0b04ba6f4417cdee4d31b631 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Mon, 14 May 2018 23:58:29 +0100 Subject: [PATCH] More quietly report request timeouts as events * eglot.el (eglot--sync-request): Use eglot--log-event --- lisp/progmodes/eglot.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index f87b4eaf124..83f4efd1437 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -612,9 +612,9 @@ timeout keeps counting." (remhash id (eglot--pending-continuations proc)) (funcall (or timeout-fn (lambda () - (eglot--error - "Tired of waiting for reply to %s, id=%s" - method id)))))))))) + (eglot--log-event + proc `(:timed-out ,method :id id + :params ,params))))))))))) (when deferred (let* ((buf (current-buffer)) (existing (gethash (list deferred buf) (eglot--deferred-actions proc)))) -- 2.39.2