From a24b750c6c90cea0fe70b149d4f0ac7f19b1f632 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 13 Dec 2019 22:49:26 -0500 Subject: [PATCH] completion/ivy: fix ivy-re-builders-alist delegates --- modules/completion/ivy/autoload/ivy.el | 10 ++++++++++ modules/completion/ivy/config.el | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/modules/completion/ivy/autoload/ivy.el b/modules/completion/ivy/autoload/ivy.el index 86e8de660..ec0c0770a 100644 --- a/modules/completion/ivy/autoload/ivy.el +++ b/modules/completion/ivy/autoload/ivy.el @@ -13,6 +13,16 @@ (and (not (eq buffer (current-buffer))) (+workspace-contains-buffer-p buffer)))) +;;;###autoload +(defun +ivy-standard-search (str) + "TODO" + (funcall +ivy-standard-search-fn str)) + +;;;###autoload +(defun +ivy-alternative-search (str) + "TODO" + (funcall +ivy-alternative-search-fn str)) + ;;;###autoload (defun +ivy-rich-buffer-name (candidate) "Display the buffer name. diff --git a/modules/completion/ivy/config.el b/modules/completion/ivy/config.el index a5f5f7125..12853e2b3 100644 --- a/modules/completion/ivy/config.el +++ b/modules/completion/ivy/config.el @@ -49,9 +49,9 @@ results buffer.") counsel-grep swiper swiper-isearch) - collect (cons cmd +ivy-standard-search-fn)) + collect (cons cmd #'+ivy-alternative-search)) ;; Ignore order for non-fuzzy searches by default - (t . ,+ivy-alternative-search-fn))) + (t . +ivy-standard-search))) (define-key! [remap switch-to-buffer] #'+ivy/switch-buffer