emacs-diffs
[Top][All Lists]
Advanced

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

master dd910dd 2/2: Place flymake-eldoc-function at the end of eldoc-doc


From: João Távora
Subject: master dd910dd 2/2: Place flymake-eldoc-function at the end of eldoc-documentation-functions
Date: Sun, 30 Aug 2020 09:55:53 -0400 (EDT)

branch: master
commit dd910dd2f84752e03ab369fa3e967e1d0086f16a
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    Place flymake-eldoc-function at the end of eldoc-documentation-functions
    
    Having it placed in the beginning of that hook meant it was mostly
    impossible to track the args to a function call while writing it from
    scratch, since most compilers issue a diagnostic about incorrect
    number of arguments.
    
    See bug#43103.
    
    * lisp/progmodes/flymake.el (flymake-mode): Lower priority of
    flymake-eldoc-function.
---
 lisp/progmodes/flymake.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index 37e7324..bdb7757 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -1002,7 +1002,7 @@ special *Flymake log* buffer."  :group 'flymake :lighter
     (add-hook 'after-change-functions 'flymake-after-change-function nil t)
     (add-hook 'after-save-hook 'flymake-after-save-hook nil t)
     (add-hook 'kill-buffer-hook 'flymake-kill-buffer-hook nil t)
-    (add-hook 'eldoc-documentation-functions 'flymake-eldoc-function nil t)
+    (add-hook 'eldoc-documentation-functions 'flymake-eldoc-function t t)
 
     ;; If Flymake happened to be alrady already ON, we must cleanup
     ;; existing diagnostic overlays, lest we forget them by blindly



reply via email to

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