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 | 8fcac83a71b845c16aa23a382c4cb28fbbcfa61d (patch) | |
tree | 11841b14c77ef2104cb203b4a9fd3ed4bcc3f525 /elisp/geiser-edit.el | |
parent | a4c9547ba10bd47078c42e389a1abc87d4b54ab6 (diff) | |
download | geiser-8fcac83a71b845c16aa23a382c4cb28fbbcfa61d.tar.gz geiser-8fcac83a71b845c16aa23a382c4cb28fbbcfa61d.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. |