]> git.eshelyaron.com Git - emacs.git/commit
Adjust flymake integration
authorJoão Távora <joaotavora@gmail.com>
Thu, 10 May 2018 11:21:29 +0000 (12:21 +0100)
committerJoão Távora <joaotavora@gmail.com>
Thu, 10 May 2018 11:21:29 +0000 (12:21 +0100)
commit4d5eff8c97a21d8bb245fe7f3b9d68efbd29d866
tree3c8d3bda574553d13e77ee80af4b55e36c46e3c8
parentdd4fada6b54b5f72d1a8a4852f386e57078a4b63
Adjust flymake integration

When opening a new file (signalling textDocument/didOpen) it makes
sense to call the flymake callback (if it exists) with no diagnostics,
just to get rid of that "Wait", since we don't know if later in this
callback cycle the server will ever report new diagnostics.

* eglot.el (eglot--managed-mode): Don't call flymake-mode or eldoc-mode
(eglot--managed-mode-hook): Add them here.
(eglot--maybe-activate-editing-mode): Call flymake callback.
(eglot--server-textDocument/publishDiagnostics): Set unreported
diagnostics to nil if invoking callback.
lisp/progmodes/eglot.el