diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-08-25 01:58:55 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-08-25 01:58:55 +0200 |
commit | 91841a63fb0cf3c8a0a6ed1e9086b72097cd44e4 (patch) | |
tree | cc22f354204c9e912f1dc7e39f40f933ce51ab1c /elisp/geiser-edit.el | |
parent | e0dd77a67b8e7c7d2d56aa353967249cc1e19f1e (diff) | |
download | geiser-91841a63fb0cf3c8a0a6ed1e9086b72097cd44e4.tar.gz geiser-91841a63fb0cf3c8a0a6ed1e9086b72097cd44e4.tar.bz2 |
Now this is cool: support for company mode.
Diffstat (limited to 'elisp/geiser-edit.el')
-rw-r--r-- | elisp/geiser-edit.el | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/elisp/geiser-edit.el b/elisp/geiser-edit.el index ad2c11e..418b6e3 100644 --- a/elisp/geiser-edit.el +++ b/elisp/geiser-edit.el @@ -155,13 +155,12 @@ or following links in error buffers.") (defvar geiser-edit--symbol-history nil) -(defun geiser-edit-symbol () +(defun geiser-edit-symbol (symbol) "Asks for a symbol to edit, with completion." - (interactive) - (let* ((symbol (geiser-completion--read-symbol "Edit symbol: " - nil - geiser-edit--symbol-history)) - (cmd `(:eval ((:ge symbol-location) ',symbol)))) + (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)))) (defun geiser-edit-symbol-at-point (&optional arg) |