]> git.eshelyaron.com Git - emacs.git/commit
Simplify jsonrpc connection shutdown
authorJoão Távora <joaotavora@gmail.com>
Fri, 8 Jun 2018 17:37:54 +0000 (18:37 +0100)
committerJoão Távora <joaotavora@gmail.com>
Fri, 8 Jun 2018 17:46:04 +0000 (18:46 +0100)
commit8def9a619605708a1b8783093f031c054b3ad585
tree031dc486d69fba5583f2c757f0a29631f31016b4
parent43d9c7b8653e5fb4c5b5652b9a1e6135b0d2781d
Simplify jsonrpc connection shutdown

* eglot.el (eglot--process): Delete.
(eglot-shutdown): Use jsonrpc-shutdown.
(eglot--on-shutdown): Simplify.
(eglot-reconnect): Simplify.
(eglot--connect): Simplify.

* jsonrpc-tests.el (jsonrpc--with-emacsrpc-fixture): Simplify.

* jsonrpc.el (jsonrpc-process-type, jsonrpc-running-p)
(jsonrpc-shutdown): New methods.

* eglot-tests.el (auto-reconnect): Use jsonrpc--process.
(eglot--call-with-dirs-and-files): Use jsonrpc-running-p.
lisp/progmodes/eglot.el