]> git.eshelyaron.com Git - emacs.git/commit
Proper server shutdown when jrpc.el is used
authorJoão Távora <joaotavora@gmail.com>
Mon, 14 May 2018 18:19:12 +0000 (19:19 +0100)
committerJoão Távora <joaotavora@gmail.com>
Mon, 14 May 2018 18:19:12 +0000 (19:19 +0100)
commit35dae7034b96fe0f32bdd51377e9a2574adea374
tree9ff33be98da8ace075de6461461bea236bf9ef83
parent0804d7da83edc68809b001032480eac8a0cde9cb
Proper server shutdown when jrpc.el is used

The shutdown hook can't be a buffer-local thing, it has
to be a server property. Also, on shutdown in eglot.el,
remember to first unmanage buffers and only then affect
eglot--processes-by-project.

* eglot.el (eglot--on-shutdown): reverse order of first
two sexps.
(eglot--connect): Pass a shutdown function to jrpc-connect
(eglot--managed-mode): Don't use jrpc-server-moribund-hook
(eglot--buffer-managed-p): Simplify. Use eglot--find-current-process.
lisp/progmodes/eglot.el