emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/eglot a43289e 25/49: Fix #616: also override global fly


From: Stefan Monnier
Subject: [elpa] externals/eglot a43289e 25/49: Fix #616: also override global flymake-diagnostic-functions
Date: Wed, 17 Mar 2021 18:41:46 -0400 (EDT)

branch: externals/eglot
commit a43289e05c83ed93db0458c5b903ca907c607078
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    Fix #616: also override global flymake-diagnostic-functions
    
    The global value of the flymake-diagnostic-functions is likely to be
    of little use in Eglot-managed buffers, so don't run it.  Likely the
    value flymake-proc-legacy-flymake is there which is not only likely of
    little uses but also causes trouble in some situations.
    
    The user can easily avert this by leveraging the variable
    eglot-stay-out-of.
    
    * eglot.el (eglot--managed-mode): Don't run global
    flymake-diagnostic-functions.
---
 eglot.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eglot.el b/eglot.el
index f3b006d..3ea8a2f 100644
--- a/eglot.el
+++ b/eglot.el
@@ -1367,7 +1367,7 @@ Use `eglot-managed-p' to determine if current buffer is 
managed.")
     (eglot--setq-saving eldoc-documentation-strategy
                         #'eldoc-documentation-enthusiast)
     (eglot--setq-saving xref-prompt-for-identifier nil)
-    (eglot--setq-saving flymake-diagnostic-functions '(eglot-flymake-backend 
t))
+    (eglot--setq-saving flymake-diagnostic-functions '(eglot-flymake-backend))
     (eglot--setq-saving company-backends '(company-capf))
     (eglot--setq-saving company-tooltip-align-annotations t)
     (when (assoc 'flex completion-styles-alist)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]