From: João Távora Date: Thu, 27 Dec 2018 18:31:42 +0000 (+0000) Subject: Remove a hard dependency on flymake-mode X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~351 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0c432de4cf64dca3869a4c7578e9d21fe3bef491;p=emacs.git Remove a hard dependency on flymake-mode * eglot.el (eglot-handle-notification): Don't specifically check for flymake-mode before reporting diagnostics. GitHub-reference: close https://github.com/joaotavora/eglot/issues/195 --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index a335f1675eb..2411c6a89c9 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -1405,7 +1405,7 @@ COMMAND is a symbol naming the command." (t 'eglot-note)) message `((eglot-lsp-diag . ,diag-spec))))) into diags - finally (cond ((and flymake-mode eglot--current-flymake-report-fn) + finally (cond (eglot--current-flymake-report-fn (funcall eglot--current-flymake-report-fn diags ;; If the buffer hasn't changed since last ;; call to the report function, flymake won't