[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/kiwix e527614 032/192: Merge branch 'release/v0.2.1'
From: |
Stefan Monnier |
Subject: |
[elpa] externals/kiwix e527614 032/192: Merge branch 'release/v0.2.1' |
Date: |
Sat, 19 Dec 2020 00:41:27 -0500 (EST) |
branch: externals/kiwix
commit e5276146cf90d5ffd2c3796f250d3944f6351492
Merge: cfef75f af10bd6
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>
Merge branch 'release/v0.2.1'
---
kiwix.el | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/kiwix.el b/kiwix.el
index d38e4f0..0124a18 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -156,13 +156,15 @@ for query string and library interactively."
(match-string 1 link)))
(library (when (string-match "\\(.+\\):(\\(.+\\)?):\\(.*\\)" link)
(match-string 2 link)))
- (query (or description
- (when (string-match "\\(.+\\):(\\(.+\\)?):\\(.*\\)" link)
- (match-string 3 link))))
- ;; "http://en.wikipedia.org/w/index.php?search=%s"
+ ;; query need to be convert to URL encoding: "禅宗"
https://zh.wikipedia.org/wiki/%E7%A6%85%E5%AE%97
+ (query (url-encode-url
+ (or description
+ (when (string-match "\\(.+\\):(\\(.+\\)?):\\(.*\\)" link)
+ (match-string 3 link)))))
+ ;; "http://en.wikipedia.org/wiki/Linux"
;; --
;; ^- library: en, zh
- (path (concat "http://" library ".wikipedia.org/w/index.php?search="
query))
+ (path (concat "http://" library ".wikipedia.org/wiki/" query))
(desc query))
(when (stringp path)
(cond
- [elpa] externals/kiwix 53f2b72 008/192: add file kiwix-at-point.el, (continued)
- [elpa] externals/kiwix 53f2b72 008/192: add file kiwix-at-point.el, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 06ad0af 009/192: remove duplicate function names, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 6d7bc71 010/192: change default Kiwix library, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 126b172 015/192: update defgroup and defcustom, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 7413397 019/192: add options to whether add org-mode link support, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 9c9d784 020/192: fix cl-lib dependent issue, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 5d25121 021/192: fix alias function name, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix aa4ac22 023/192: improve interactive function, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix d684140 024/192: Quote path argument each time it's used, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix f43e006 028/192: add Kiwix installation commentary, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix e527614 032/192: Merge branch 'release/v0.2.1',
Stefan Monnier <=
- [elpa] externals/kiwix 00c5a17 033/192: Merge tag 'v0.2.1' into develop, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 164cf9c 034/192: disable Wikipedia_Local link abbrev, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix c3e2d85 038/192: fix query is chinese string issue, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix c5df1ac 042/192: Merge branch 'release/v0.3.0', Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix fb92b4f 043/192: Merge tag 'v0.3.0' into develop, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 1ddddc1 044/192: improve library fragment, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix b84a5ff 047/192: Merge branch 'release/v0.4.0', Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 19bfe4f 051/192: add an option to let kiwix-at-point search interactively, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix d4fbf7b 052/192: define function ahead, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix f1554ba 054/192: fix some default library abbr name., Stefan Monnier, 2020/12/19