From 0c432de4cf64dca3869a4c7578e9d21fe3bef491 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Thu, 27 Dec 2018 18:31:42 +0000 Subject: [PATCH] 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 --- lisp/progmodes/eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2