summaryrefslogtreecommitdiff
path: root/helm-mode.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-04-22 17:59:57 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-04-22 17:59:57 +0200
commit6d260f9fbdc5ded7ae092cca3e0ee3a6ebab3a64 (patch)
treeacd501cb7801a85f5eb59e6cd929d78c520fede4 /helm-mode.el
parent0efc737424844b4ca49ef7c577ff8f7336e59368 (diff)
Finally decide to use an optimized handler in CR.
* helm-mode.el (helm--completing-read-default): Do it.
Diffstat (limited to 'helm-mode.el')
-rw-r--r--helm-mode.el18
1 files changed, 3 insertions, 15 deletions
diff --git a/helm-mode.el b/helm-mode.el
index 1101c708..493160da 100644
--- a/helm-mode.el
+++ b/helm-mode.el
@@ -776,22 +776,10 @@ See documentation of `completing-read' and `all-completions' for details."
;; If we are here `helm-mode' is now disabled.
def-com
(apply def-com def-args))
- (;; Try to use an optimized helm with in-buffer if
- ;; collection is a fixed list.
- ;; FIXME: Why limiting this to lists ? AFAIK all
- ;; COLLECTION even when functions are returning a
- ;; plain list from `helm-comp-read-get-candidates' so
- ;; perhaps I can use this everywhere by default ?
- (and (listp collection)
- (not (functionp collection))
- (not (byte-code-function-p collection)))
- (helm-completing-read-with-cands-in-buffer
- prompt collection predicate require-match
- initial-input hist def inherit-input-method
- str-command buf-name))
- (;; Fall back to classic `helm-comp-read'.
+ (;; Use by default a cands-in-buffer handler which
+ ;; should work everywhere, it is much faster.
t
- (helm-completing-read-default-1
+ (helm-completing-read-with-cands-in-buffer
prompt collection predicate require-match
initial-input hist def inherit-input-method
str-command buf-name)))