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

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

[elpa] externals/kiwix d4fbf7b 052/192: define function ahead


From: Stefan Monnier
Subject: [elpa] externals/kiwix d4fbf7b 052/192: define function ahead
Date: Sat, 19 Dec 2020 00:41:31 -0500 (EST)

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

    define function ahead
---
 kiwix.el | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/kiwix.el b/kiwix.el
index a177428..1979861 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -103,6 +103,15 @@
   (kiwix-construct-libraries-abbrev-alist kiwix-libraries)
   "Alist of Kiwix libraries with name and full name.")
 
+(defun kiwix-select-library-name ()
+  "Select Wikipedia library name abbrev."
+  (completing-read "Wikipedia library abbrev: "
+                   (map-keys kiwix-libraries-abbrev-alist)))
+
+(defun kiwix-get-library-fullname (abbr)
+  "Get Kiwix library full name which is associated with `ABBR'."
+  (cdr (assoc abbr kiwix-libraries-abbrev-alist)))
+
 (defcustom kiwix-default-library "wikipedia_en"
   "The default kiwix library when library fragment in link not specified.")
 
@@ -122,15 +131,6 @@
 ;; (kiwix-get-library-fullname "en")
 ;; (kiwix-get-library-fullname "zh")
 
-(defun kiwix-select-library-name ()
-  "Select Wikipedia library name abbrev."
-  (completing-read "Wikipedia library abbrev: "
-                   (map-keys kiwix-libraries-abbrev-alist)))
-
-(defun kiwix-get-library-fullname (abbr)
-  "Get Kiwix library full name which is associated with `ABBR'."
-  (cdr (assoc abbr kiwix-libraries-abbrev-alist)))
-
 (defcustom kiwix-search-interactively t
   "`kiwix-at-point' search interactively."
   :type 'boolean



reply via email to

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