summaryrefslogtreecommitdiff
path: root/elisp/geiser-edit.el
diff options
context:
space:
mode:
authorLockywolf <lockywolf@gmail.com>2019-08-07 13:05:51 +0800
committerLockywolf <lockywolf@gmail.com>2019-08-07 13:05:51 +0800
commit8b02547cbe1b8b33aea57722d011d76738950cfd (patch)
treecec445e5683bcddfa9cbf5018ad3d6374b1f2760 /elisp/geiser-edit.el
parent35f231665c313ba5bc6da0a43a019299364cc281 (diff)
downloadgeiser-8b02547cbe1b8b33aea57722d011d76738950cfd.tar.gz
geiser-8b02547cbe1b8b33aea57722d011d76738950cfd.tar.bz2
Add error reporting about missing symbols to geiser-edit.el
Add (chibi filesystem) import to geiser.sld
Diffstat (limited to 'elisp/geiser-edit.el')
-rw-r--r--elisp/geiser-edit.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/elisp/geiser-edit.el b/elisp/geiser-edit.el
index 6754472..541363d 100644
--- a/elisp/geiser-edit.el
+++ b/elisp/geiser-edit.el
@@ -237,12 +237,14 @@ With prefix, asks for the symbol to edit."
(geiser-completion--read-symbol "Edit symbol: ")))
(cmd `(:eval (:ge symbol-location ',symbol)))
(marker (point-marker)))
- (condition-case-unless-debug err
+ (condition-case-unless-debug err-of-sym
(progn (geiser-edit--try-edit symbol (geiser-eval--send/wait cmd))
(when marker (xref-push-marker-stack)))
- (error (condition-case-unless-debug nil
+ (error (condition-case-unless-debug err-of-mod
(geiser-edit-module-at-point)
- (error (error (error-message-string err))))))))
+ (error (error "Geiser:cannot edit symbol at point\nSymbol error message:%s\nModule error message:%s"
+ (error-message-string err-of-sym)
+ (error-message-string err-of-mod))))))))
(defun geiser-pop-symbol-stack ()
"Pop back to where \\[geiser-edit-symbol-at-point] was last invoked."