branch: elpa/eldoc-mouse
commit 0077457e02269268d386766aaf59c982ce94f0d9
Author: HuangFeiyu <[email protected]>
Commit: HuangFeiyu <[email protected]>

    don't show overlay on code comment
---
 eldoc-mouse.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eldoc-mouse.el b/eldoc-mouse.el
index cefe785e429..162a7687eb3 100644
--- a/eldoc-mouse.el
+++ b/eldoc-mouse.el
@@ -112,7 +112,7 @@ POS is the buffer position under the mouse cursor."
       (add-hook 'eldoc-documentation-functions 
#'eldoc-mouse-hover-eldoc-function nil t)
       (goto-char pos)
       (setq-local eldoc-mouse-last-symbol-bounds (bounds-of-thing-at-point 
'symbol))
-      (when (and (not (eolp)) (thing-at-point 'symbol))
+      (when (and (not (eolp)) (not (nth 4 (syntax-ppss))) (thing-at-point 
'symbol))
         (setq-local eldoc-mouse-unsupress-posframe t)
         (eldoc-print-current-symbol-info)
         (setq-local eldoc-mouse-mouse-overlay (make-overlay (car 
eldoc-mouse-last-symbol-bounds) (cdr eldoc-mouse-last-symbol-bounds)))

Reply via email to