summaryrefslogtreecommitdiff
path: root/elisp/geiser-completion.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-14 20:52:27 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-14 20:52:27 +0100
commit5ee2ae3ccd73f5dfae68db011c581f918eea8751 (patch)
treec121a321d93bdc852ac99051be4c78b11db92348 /elisp/geiser-completion.el
parent13d84e514446438f0115585f3a14e36f535e2225 (diff)
downloadgeiser-chez-5ee2ae3ccd73f5dfae68db011c581f918eea8751.tar.gz
geiser-chez-5ee2ae3ccd73f5dfae68db011c581f918eea8751.tar.bz2
New command to get docstrings (C-cC-d).
Diffstat (limited to 'elisp/geiser-completion.el')
-rw-r--r--elisp/geiser-completion.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/elisp/geiser-completion.el b/elisp/geiser-completion.el
index dd0c33c..3a36187 100644
--- a/elisp/geiser-completion.el
+++ b/elisp/geiser-completion.el
@@ -183,12 +183,14 @@ terminates a current completion."
(partial (if (eq partial t) prefix partial)))
(cons completions partial)))
+(defvar geiser-completion--symbol-history nil)
+
(defun geiser-completion--read-symbol (prompt &optional default history)
(let ((minibuffer-local-completion-map geiser-completion--minibuffer-map))
(completing-read prompt
geiser-completion--symbol-list-func
nil nil nil
- history
+ (or history geiser-completion--symbol-history)
(or default (symbol-at-point)))))
(defun geiser--respecting-message (format &rest format-args)