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
commit11a64e7405ade65d48c28c578dfb18d15f9499d1 (patch)
treefcdb4501e9654140a2962592ca23250b4cf371bf /elisp/geiser-completion.el
parent93b51a8d4613364e04f52f78914c0f635b681f9f (diff)
downloadgeiser-11a64e7405ade65d48c28c578dfb18d15f9499d1.tar.gz
geiser-11a64e7405ade65d48c28c578dfb18d15f9499d1.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)