diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-11-01 05:16:55 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-11-01 05:16:55 +0100 |
commit | d830e14a4010284b4085d9942bfd856b0360d793 (patch) | |
tree | b1d9937a2ea92b7b04eadb27e64a0a95f805eb61 /elisp/geiser-edit.el | |
parent | ea42746970657bc05b31c462a01df21d079e4a9e (diff) | |
download | geiser-chez-d830e14a4010284b4085d9942bfd856b0360d793.tar.gz geiser-chez-d830e14a4010284b4085d9942bfd856b0360d793.tar.bz2 |
Better error message for edit-symbol-at-point
Diffstat (limited to 'elisp/geiser-edit.el')
-rw-r--r-- | elisp/geiser-edit.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/elisp/geiser-edit.el b/elisp/geiser-edit.el index 4d61edc..8c34c28 100644 --- a/elisp/geiser-edit.el +++ b/elisp/geiser-edit.el @@ -205,10 +205,12 @@ 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 nil + (condition-case err (progn (geiser-edit--try-edit symbol (geiser-eval--send/wait cmd)) (when marker (ring-insert find-tag-marker-ring marker))) - (error (geiser-edit-module-at-point))))) + (error (condition-case nil + (geiser-edit-module-at-point) + (error (error (error-message-string err)))))))) (defun geiser-pop-symbol-stack () "Pop back to where \\[geiser-edit-symbol-at-point] was last invoked." |