summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-10-16 22:09:47 +0100
committerjao <jao@gnu.org>2022-10-16 22:09:47 +0100
commit3123a38e9ea036db9d9a884e7bb414490813e93c (patch)
tree041bf161aa1dd6f37960da28f49de57d5000306c /elisp
parent3de5b384a1135aa0f3cf789ea76082d0279e672f (diff)
downloadgeiser-3123a38e9ea036db9d9a884e7bb414490813e93c.tar.gz
geiser-3123a38e9ea036db9d9a884e7bb414490813e93c.tar.bz2
fix: don't signal an error when we find module as an alternative
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-edit.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/elisp/geiser-edit.el b/elisp/geiser-edit.el
index 0742f16..f2ed57a 100644
--- a/elisp/geiser-edit.el
+++ b/elisp/geiser-edit.el
@@ -259,7 +259,8 @@ With prefix, asks for the symbol to locate."
(if (geiser-edit--try-edit symbol ret nil t)
(when marker (xref-push-marker-stack marker))
(unless (geiser-edit-module-at-point t)
- (error "Couldn't find location for '%s'" symbol)))))
+ (error "Couldn't find location for '%s'" symbol)))
+ t))
(defun geiser-pop-symbol-stack ()
"Pop back to where \\[geiser-edit-symbol-at-point] was last invoked."
@@ -279,7 +280,8 @@ With prefix, asks for the symbol to locate."
(geiser-edit-module (or (geiser-completion--module-at-point)
(geiser-completion--read-module))
nil no-error)
- (when marker (xref-push-marker-stack marker))))
+ (when marker (xref-push-marker-stack marker))
+ t))
(defun geiser-insert-lambda (&optional full)
"Insert λ at point. With prefix, inserts (λ ())."