branch: elpa/eldoc-mouse
commit 6f51379e7398ed0495054a5cabdbfb48ab8618de
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>

    Perform syntax-ppss check last
    
    Call syntax-ppss after null check as it's much more expensive.
---
 eldoc-mouse.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eldoc-mouse.el b/eldoc-mouse.el
index 97e58353101..ecc7b5d158d 100644
--- a/eldoc-mouse.el
+++ b/eldoc-mouse.el
@@ -210,7 +210,7 @@ POS is the buffer position under the mouse cursor."
         ;; Use (nth 4 (syntax-ppss)) to check if the mouse is over a code 
comment.
         ;; based on the answer from
         ;; https://emacs.stackexchange.com/questions/14269/14270#14270
-        (when (and (not (eolp)) (not (nth 4 (syntax-ppss))) 
eldoc-mouse-last-symbol-bounds)
+        (when (and eldoc-mouse-last-symbol-bounds (not (eolp)) (not (nth 4 
(syntax-ppss))))
           (setq-local eldoc-mouse-unsupress-posframe t)
           (eldoc-print-current-symbol-info)
           (setq-local eldoc-mouse-mouse-overlay

Reply via email to