]> git.eshelyaron.com Git - emacs.git/commit
Rework autoreconnection logic
authorJoão Távora <joaotavora@gmail.com>
Fri, 11 May 2018 09:59:59 +0000 (10:59 +0100)
committerJoão Távora <joaotavora@gmail.com>
Fri, 11 May 2018 10:11:22 +0000 (11:11 +0100)
commit4af0193fad1ca40b48db4fba5b27e8a6f6c8d11a
tree4ee31836ba7a2130ee22aba66507f4e1fe281b6a
parent1251bd1336077b9a3490929fd2aa2c70acada495
Rework autoreconnection logic

Can't be a global var, has to be a per process thing.

* eglot.el (eglot-autoreconnect): New defcustom
(eglot--inhibit-autoreconnect): Renamed from eglot--inhibit-autoreconnect
(eglot--connect): Run autoreconnect timer here.
(eglot--inhibit-auto-reconnect): Removed.
(eglot--process-sentinel): Don't run timer here. Rework.
(eglot, eglot-reconnect): Pass INTERACTIVE to eglot--connect.
lisp/progmodes/eglot.el