emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/kiwix 0c5e161 10/10: Fix #5 Switch from selectrum-read


From: Stefan Monnier
Subject: [elpa] externals/kiwix 0c5e161 10/10: Fix #5 Switch from selectrum-read to consult--read API
Date: Wed, 17 Mar 2021 18:45:25 -0400 (EDT)

branch: externals/kiwix
commit 0c5e1619f079df822686cf42af5859111b6afd44
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>

    Fix #5 Switch from selectrum-read to consult--read API
---
 kiwix.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/kiwix.el b/kiwix.el
index 031eaf8..c290cae 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -120,7 +120,7 @@
   :safe #'stringp)
 
 (defcustom kiwix-default-completing-read (cond
-                                          ((fboundp 'selectrum-read) 
'selectrum)
+                                          ((fboundp 'consult--read) 'selectrum)
                                           ((fboundp 'ivy-read) 'ivy)
                                           ((fboundp 'helm) 'helm)
                                           (t t))
@@ -297,11 +297,12 @@ list and return a list result."
                (query (pcase kiwix-default-completing-read
                         ('selectrum
                          (require 'selectrum)
-                         (selectrum-read
-                          "Kiwix related entries: "
+                         (require 'consult)
+                         (consult--read
                           (lambda (input)
                             (apply #'kiwix-ajax-search-hints
                                    input `(,kiwix--selected-library)))
+                          :prompt "Kiwix related entries: "
                           :require-match nil))
                         ('ivy
                          (require 'ivy)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]