[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/kiwix 76c0b5a 035/192: temporarily disable org-mode lin
From: |
Stefan Monnier |
Subject: |
[elpa] externals/kiwix 76c0b5a 035/192: temporarily disable org-mode link store prompt issue |
Date: |
Sat, 19 Dec 2020 00:41:28 -0500 (EST) |
branch: externals/kiwix
commit 76c0b5a31884e1c570d33505e5492bd12993159b
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>
temporarily disable org-mode link store prompt issue
---
kiwix.el | 22 +++++++++++++---------
1 file changed, 13 insertions(+), 9 deletions(-)
diff --git a/kiwix.el b/kiwix.el
index ce50a3f..49326f1 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -174,19 +174,23 @@ for query string and library interactively."
(defun org-wiki-store-link ()
"Store a link to a wiki link."
- (let* ((query (read-string "Wiki Query: "))
- ;; TODO: test does this interactively select library abbrev works?
- (library (kiwix-select-library-abbrev))
- (link (concat "wiki:" "(" library "):" query)))
- (org-store-link-props
- :type "wiki"
- :link link
- :description query)))
+ ;; TODO: test does this interactively select library abbrev works?
+ ;; [C-c o C-l l] `org-store-link'
+ ;; remove those interactive functions. use normal function instead.
+ (when (eq major-mode 'wiki-mode)
+ (let* ((query (read-string "Wiki Query: "))
+ (library (kiwix-select-library-abbrev))
+ (link (concat "wiki:" "(" library "):" query)))
+ (org-store-link-props
+ :type "wiki"
+ :link link
+ :description query))))
(if kiwix-support-org-mode-link
(progn
(org-add-link-type "wiki" 'org-wiki-link-open 'org-wiki-link-export)
- (add-hook 'org-store-link-functions 'org-wiki-store-link)
+ ;; TODO: after fix interactive store link issue. enable this adding.
+ ;; (add-hook 'org-store-link-functions 'org-wiki-store-link t)
;; [[Wikipedia_Local:]]
;; (if (and
- [elpa] externals/kiwix 06b5d36 027/192: Merge branch 'master' of github.com:stardiviner/kiwix.el, (continued)
- [elpa] externals/kiwix 06b5d36 027/192: Merge branch 'master' of github.com:stardiviner/kiwix.el, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 377f3fa 014/192: add package metadata, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix d0da8cd 017/192: make package description clear, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix bd0fe09 018/192: setq-local depend on cl-lib, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 5990cc7 022/192: improve query function to specify library, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 511a11c 025/192: Merge pull request #1 from purcell/patch-1, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix b585e25 026/192: move org-mode relative code to commentary, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 1782487 029/192: re-enable org-mode wiki link support, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix cfef75f 030/192: improve org-mode wiki: link support, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix af10bd6 031/192: fix org link exporting encoding, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 76c0b5a 035/192: temporarily disable org-mode link store prompt issue,
Stefan Monnier <=
- [elpa] externals/kiwix e35ef5e 036/192: Merge branch 'release/v0.2.2', Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 96e8d37 037/192: Merge tag 'v0.2.2' into develop, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 97822f1 039/192: convert between librarie full name and abbrev., Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 9774c61 040/192: update elisp link matching regexp, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix c09f7ad 041/192: optimize open link function, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 6e6959b 045/192: improve custom options, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 90ac73a 046/192: update README declaration, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix f6a5f4c 048/192: Merge tag 'v0.4.0' into develop, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 160b228 049/192: fix cl-lib version, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 90658b7 050/192: support old format library name, Stefan Monnier, 2020/12/19