]> git.eshelyaron.com Git - emacs.git/commit
Merge -onoff proxy code into minor mode function
authorIngo Lohmar <ingo.lohmar@posteo.net>
Fri, 18 Oct 2019 19:11:59 +0000 (21:11 +0200)
committerIngo Lohmar <ingo.lohmar@posteo.net>
Fri, 1 Nov 2019 14:23:46 +0000 (15:23 +0100)
commit27e0aa7333f84e2ea450309a801a5613fc9ede95
tree9e686151a4e14be9b9a87f136b5e3e10f97a7076
parentee794a8d5ec095fabe0ce4b682b665cb97d3301d
Merge -onoff proxy code into minor mode function

This simplifies bookkeeping and keeping the state of locally cached
servers, their managed buffers, and the buffer-local mode consistent.

The "on" case of the -onoff code now expects that
`eglot--cached-current-server' has been set already, the "off" case uses
the same value.

* eglot.el (eglot--managed-mode-onoff): Remove.
(eglot--managed-mode): Adopt code.
(eglot--managed-mode-off): New minimal wrapper.
lisp/progmodes/eglot.el