From eb9d6281b58f50927afdc2fdb2fcebf76e2ffe23 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Mon, 10 Oct 2022 13:57:26 +0100 Subject: [PATCH] Do use eglot-connect-timeout if eglot-sync-connect is t Reported by Eli Zaretskii * eglot.el (eglot--connect): Use eglot-connect-timeout in the case eglot-sync-connect is t. --- lisp/progmodes/eglot.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index d3f5935a9ef..18523067fa0 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -1282,7 +1282,8 @@ in project `%s'." (cond ((numberp eglot-sync-connect) (accept-process-output nil eglot-sync-connect)) (eglot-sync-connect - (while t (accept-process-output nil 30))))))) + (while t (accept-process-output + nil eglot-connect-timeout))))))) (pcase retval (`(error . ,msg) (eglot--error msg)) (`nil (eglot--message "Waiting in background for server `%s'" -- 2.39.5