diff options
author | Lockywolf <lockywolf@gmail.com> | 2019-08-07 13:05:51 +0800 |
---|---|---|
committer | Lockywolf <lockywolf@gmail.com> | 2019-08-07 13:05:51 +0800 |
commit | 9b0386991c360391c7b48de5451108b939ecf314 (patch) | |
tree | de565e3d51e452ef0fc77be7758b5b93de4f30d6 /elisp | |
parent | 2a2af730bdcc20e06755ac9e4cad5549e690cd6f (diff) | |
download | geiser-guile-9b0386991c360391c7b48de5451108b939ecf314.tar.gz geiser-guile-9b0386991c360391c7b48de5451108b939ecf314.tar.bz2 |
Add error reporting about missing symbols to geiser-edit.el
Add (chibi filesystem) import to geiser.sld
Diffstat (limited to 'elisp')
-rw-r--r-- | elisp/geiser-edit.el | 8 |
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." |