summaryrefslogtreecommitdiff
path: root/elisp/geiser-autodoc.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-10-21 01:26:04 +0100
committerjao <jao@gnu.org>2022-10-21 01:26:04 +0100
commit2174f90b64343c1af76c8e5469d5e4b69d709c08 (patch)
tree7a7da77640deefcaee345bbf86fc62077b919c4d /elisp/geiser-autodoc.el
parent4ab96cb80ad1fce1297776bc0fc6dc5093a41bd5 (diff)
downloadgeiser-2174f90b64343c1af76c8e5469d5e4b69d709c08.tar.gz
geiser-2174f90b64343c1af76c8e5469d5e4b69d709c08.tar.bz2
more tweaks to regexp signature finding
and its use in autodoc (for instance, skip it when in the REPL).
Diffstat (limited to 'elisp/geiser-autodoc.el')
-rw-r--r--elisp/geiser-autodoc.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/elisp/geiser-autodoc.el b/elisp/geiser-autodoc.el
index 924fadb..f18a6ed 100644
--- a/elisp/geiser-autodoc.el
+++ b/elisp/geiser-autodoc.el
@@ -185,7 +185,8 @@ you can set this variable to nil to avoid them."
(s))
(while (and p (not s))
(setq s (or (cdr (assoc (car p) signs))
- (cdr (geiser-edit--find-def (car p)))))
+ (and geiser-mode
+ (cdr (geiser-edit--find-def (car p) t)))))
(unless s (setq p (car path) path (cdr path))))
(cond ((stringp s) s)
(s (geiser-autodoc--str p s)))))))