From c6df89c9e1a393bab3fe2bc8e03ca053eaf9a7d5 Mon Sep 17 00:00:00 2001 From: Ravi R Kiran Date: Tue, 16 Nov 2021 21:54:16 -0600 Subject: completing-read wants a symbol, not the value 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)) -- cgit v0.10.1