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

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

[elpa] externals/kiwix 97822f1 039/192: convert between librarie full na


From: Stefan Monnier
Subject: [elpa] externals/kiwix 97822f1 039/192: convert between librarie full name and abbrev.
Date: Sat, 19 Dec 2020 00:41:28 -0500 (EST)

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

    convert between librarie full name and abbrev.
---
 kiwix.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/kiwix.el b/kiwix.el
index 8793e9e..f6135d3 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -140,7 +140,10 @@ for query string and library interactively."
   "Open LINK in external wiki program."
   (cond ((string-match "\\(.*\\):(\\(.*\\)):\\(.*\\)"  link)
          (let* ((type (match-string 1 link))
-                (library (match-string 2 link))
+                ;; convert between libraries full name and abbrev.
+                (library (cdr (assoc
+                               (match-string 2 link)
+                               kiwix-librarie-abbrev-list)))
                 (query (match-string 3 link))
                 (url (concat kiwix-server-url library "/A/" (url-encode-url 
(capitalize query)) ".html")))
            (browse-url url)))



reply via email to

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