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

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

[elpa] externals/kiwix 5bd84a6 187/192: select kiwix library when comple


From: Stefan Monnier
Subject: [elpa] externals/kiwix 5bd84a6 187/192: select kiwix library when completing org link
Date: Sat, 19 Dec 2020 00:41:57 -0500 (EST)

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

    select kiwix library when completing org link
---
 org-kiwix.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/org-kiwix.el b/org-kiwix.el
index dfd7d69..4076051 100644
--- a/org-kiwix.el
+++ b/org-kiwix.el
@@ -107,9 +107,11 @@
 
 (defun org-wikipedia-complete-link (&optional arg)
   "Use kiwix AJAX request to provide available completion keywords."
-  (let* ((input (or arg (read-from-minibuffer "Search keyword: ")))
-         (keywords (kiwix-ajax-search-hints input)))
+  (let* ((query (or arg (read-from-minibuffer "Search keyword: ")))
+         (library (kiwix-select-library))
+         (keywords (kiwix-ajax-search-hints query library)))
     (concat "wikipedia:"
+            "(" library "):"
             (completing-read "Available keywords: " keywords))))
 
 ;;;###autoload



reply via email to

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