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 | 70b6d7a95f3c4e706b72568e2a29de2391fe09e2 (patch) | |
tree | e00a045d42a88ce8f7e6cd411b36dc83e4931744 | |
parent | e3a3fed49f07847b4845f04f27d15156f93ee61a (diff) | |
download | geiser-70b6d7a95f3c4e706b72568e2a29de2391fe09e2.tar.gz geiser-70b6d7a95f3c4e706b72568e2a29de2391fe09e2.tar.bz2 |
Better error message for edit-symbol-at-point
-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." |