]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove a hard dependency on flymake-mode
authorJoão Távora <joaotavora@gmail.com>
Thu, 27 Dec 2018 18:31:42 +0000 (18:31 +0000)
committerJoão Távora <joaotavora@gmail.com>
Thu, 27 Dec 2018 18:31:42 +0000 (18:31 +0000)
* 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

index a335f1675ebaac32b367d7256166d3cbcfc438bd..2411c6a89c9d9bbf7519b735601c224db6fc1455 100644 (file)
@@ -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