]> git.eshelyaron.com Git - emacs.git/commit
Generalize eglot-flymake-backend
authorJoão Távora <joaotavora@gmail.com>
Thu, 1 Apr 2021 23:21:27 +0000 (00:21 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sat, 3 Apr 2021 09:53:45 +0000 (10:53 +0100)
commitdcbb5a8d0bf3936363d1cfcb5b074199f3a67353
treeb8758103ff04fb04167265e1f2188b61d1580a8d
parent602004dbb5286e20fffae9c034b89aab994ad826
Generalize eglot-flymake-backend

Loosen coupling between eglot-flymake-backend and flymake-mode.  The
flymake-mode check in 'eglot-handle-notification publishDiagnostics'
was a hack (and it wasn't even functioning correctly on M-x
eglot-shutdown/eglot-reconnect).

This should also allow eglot-flymake-backend to be driven by
diagnostic-annotating frontends other than Flymake, such as the
popular Flycheck package.

* eglot.el (eglot--managed-mode): Use eglot--report-to-flymake.
(eglot-handle-notification textDocument/publishDiagnostics): Use
eglot--report-to-flymake.

GitHub-reference: fix https://github.com/joaotavora/eglot/issues/596
lisp/progmodes/eglot.el