From: João Távora Date: Sun, 1 Jul 2018 21:49:40 +0000 (+0100) Subject: Inhibit auto-reconnect until connection is established X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~481 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1a58481719f63c3e77832f7c8474ce745a05ad4c;p=emacs.git Inhibit auto-reconnect until connection is established Otherwise, a server that crashes on startup is enough to throw Eglot into a reconnection infloop. * eglot.el (eglot-lsp-server): Initialize "inhibit-autoreconnect" slot to t. GitHub-reference: close https://github.com/joaotavora/eglot/issues/36 --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 50733f74581..8cad3ad1b58 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -206,6 +206,7 @@ lasted more than that many seconds." :documentation "List (ID DOING-WHAT DONE-P) representing server progress." :initform `(nil nil t) :accessor eglot--spinner) (inhibit-autoreconnect + :initform t :documentation "Generalized boolean inhibiting auto-reconnection if true." :accessor eglot--inhibit-autoreconnect) (file-watches