summaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRavi R Kiran <aine.marina@gmail.com>2021-11-17 03:54:16 (GMT)
committerRavi R Kiran <aine.marina@gmail.com>2021-11-17 03:54:16 (GMT)
commitc6df89c9e1a393bab3fe2bc8e03ca053eaf9a7d5 (patch)
tree7f4aeea69e85efa056a97dba647494a9ea4944c6 /lisp
parent8fc025703c4f1e539211710bc1d8b585b6f9d333 (diff)
downloaddotemacs-c6df89c9e1a393bab3fe2bc8e03ca053eaf9a7d5.zip
dotemacs-c6df89c9e1a393bab3fe2bc8e03ca053eaf9a7d5.tar.gz
dotemacs-c6df89c9e1a393bab3fe2bc8e03ca053eaf9a7d5.tar.bz2
completing-read wants a symbol, not the value
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ravi-init-completion.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/ravi-init-completion.el b/lisp/ravi-init-completion.el
index a315f20..9cc9ef5 100644
--- a/lisp/ravi-init-completion.el
+++ b/lisp/ravi-init-completion.el
@@ -383,7 +383,7 @@ INITIAL will be used as the initial input, if given."
nil ; predicate
t ; require-match
nil ; initial-input
- ravi/dash-history-input ; history
+ 'ravi/dash-history-input ; history
(when-let ((sym (thing-at-point 'symbol))) (substring-no-properties sym))))) ; default, a.k.a future history
(message "%s" (prin1-to-string (ravi/dash--collection "C++ throw")))))
@@ -404,7 +404,7 @@ INITIAL will be used as the initial input, if given."
(cb (current-buffer))
(table (with-current-buffer cb (ravi/dash--collection sym-only)))
(result (completing-read (format "Documentation for '%s':" sym-only)
- table nil t nil ravi/dash-history-input)))
+ table nil t nil 'ravi/dash-history-input)))
(progn
(ravi/dash--browse-matching-result result)
(add-to-list 'ravi/dash-history-input sym-only))