diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-06-12 00:03:28 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-06-12 00:03:28 +0200 |
commit | 31df91e17edf9e8eea742b5a6f674a20868ec827 (patch) | |
tree | 29737fd3d078dd9d761743c1ac572764a916dcd3 /elisp/geiser-edit.el | |
parent | 4428e92f1ea97ac1443740c97e0ad8db6d0259fa (diff) | |
download | geiser-guile-31df91e17edf9e8eea742b5a6f674a20868ec827.tar.gz geiser-guile-31df91e17edf9e8eea742b5a6f674a20868ec827.tar.bz2 |
New buttons (source, forward/backward) in document browser.
Diffstat (limited to 'elisp/geiser-edit.el')
-rw-r--r-- | elisp/geiser-edit.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/elisp/geiser-edit.el b/elisp/geiser-edit.el index 7a62a5c..8d25133 100644 --- a/elisp/geiser-edit.el +++ b/elisp/geiser-edit.el @@ -145,14 +145,15 @@ or following links in error buffers.") (defvar geiser-edit--symbol-history nil) -(defun geiser-edit-symbol (symbol &optional method) +(defun geiser-edit-symbol (symbol &optional method marker) "Asks for a symbol to edit, with completion." (interactive (list (geiser-completion--read-symbol "Edit symbol: " nil geiser-edit--symbol-history))) (let ((cmd `(:eval ((:ge symbol-location) ',symbol)))) - (geiser-edit--try-edit symbol (geiser-eval--send/wait cmd) method))) + (geiser-edit--try-edit symbol (geiser-eval--send/wait cmd) method) + (when marker (ring-insert find-tag-marker-ring marker)))) (defun geiser-edit-symbol-at-point (&optional arg) "Opens a new window visiting the definition of the symbol at point. |