summaryrefslogtreecommitdiff
path: root/elisp/geiser-edit.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-10-16 03:39:01 +0100
committerjao <jao@gnu.org>2022-10-16 03:39:01 +0100
commit08eb83e023ad043f58b89351eabbd5a1f2803068 (patch)
tree4931002d2880964030844d34c2e39a7eb62f7b8f /elisp/geiser-edit.el
parent1c03af209ee46da5e3922884934539648c06cac0 (diff)
downloadgeiser-08eb83e023ad043f58b89351eabbd5a1f2803068.tar.gz
geiser-08eb83e023ad043f58b89351eabbd5a1f2803068.tar.bz2
fix: restore looking for module if symbol's not there
Diffstat (limited to 'elisp/geiser-edit.el')
-rw-r--r--elisp/geiser-edit.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/elisp/geiser-edit.el b/elisp/geiser-edit.el
index 1a5d1de..4c2560c 100644
--- a/elisp/geiser-edit.el
+++ b/elisp/geiser-edit.el
@@ -128,7 +128,9 @@ or following links in error buffers.")
(when file
(geiser-edit--visit-file file (or method geiser-edit-symbol-method)))
(or (geiser-edit--goto-location symbol line col pos)
- (error "Couldn't find location for symbol at point"))))
+ file
+ (unless no-error
+ (error "Couldn't find location for '%s'" symbol)))))
(defsubst geiser-edit--try-edit (symbol ret &optional method no-error)
(geiser-edit--try-edit-location symbol