]> git.eshelyaron.com Git - emacs.git/commit
Hopefully fix the flymake bootstrap problem
authorJoão Távora <joaotavora@gmail.com>
Sun, 27 May 2018 11:58:49 +0000 (12:58 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sun, 27 May 2018 12:15:38 +0000 (13:15 +0100)
commit22294e04cd996c3bd337611cbf32a462909a6273
treeb7d394627dd9400a602c7ce95a5f3283e1ac3b36
parent92593bb4c13a80303866cdb6992adb2012e2b279
Hopefully fix the flymake bootstrap problem

Immediately after M-x eglot, eglot's use of flymake was having trouble
detecting the first diagnostics sent from the server, resulting in an
annoying "Wait" in the mode-line.

* eglot.el (eglot--current-flymake-report-fn): Move up here.
(eglot--managed-mode): Set eglot--current-flymake-report-fn to nil
on teardown.
(eglot--maybe-activate-editing-mode): Simplify.
(eglot-handle-notification textDocument/publishDiagnostics): Set unreported-diagnostics to a cons.
(eglot-handle-notification eglot-rls window/progress): Simplify.

* eglot-tests.el (rls-basic-diagnostics): Simplify test.
lisp/progmodes/eglot.el