diff options
Diffstat (limited to 'helm-mode.el')
-rw-r--r-- | helm-mode.el | 18 |
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))) |