branch: externals/kiwix
commit 878b02be15ea9aebe939189fd10598b057b739af
Author: stardiviner <[email protected]>
Commit: stardiviner <[email protected]>
remove autoload cookies for Org link commands
---
kiwix.el | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/kiwix.el b/kiwix.el
index 7e3a55b..7c44345 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -235,7 +235,7 @@ for query string and library interactively."
;; validate query is non-English
(kiwix-select-library "zh")))
-;;;###autoload
+
(defun org-wikipedia-link-open (link)
"Open LINK in external Wikipedia program."
;; The regexp: (library):query
@@ -258,7 +258,6 @@ for query string and library interactively."
;; (prin1 (format "library: %s, query: %s, url: %s" library query url))
(browse-url url))))
-;;;###autoload
(defun org-wikipedia-link-export (link description format)
"Export the Wikipedia LINK with DESCRIPTION for FORMAT from Org files."
(when (string-match "\\(?:(\\(.*\\)):\\)?\\([^] \n\t\r]*\\)" link)
@@ -275,7 +274,6 @@ for query string and library interactively."
((eq format 'latex) (format "\\href{%s}{%s}" path desc))
(t path))))))
-;;;###autoload
(defun org-wikipedia-store-link ()
"Store a link to a Wikipedia link."
;; [C-c o C-l l] `org-store-link'
@@ -289,15 +287,11 @@ for query string and library interactively."
:description query)
link)))
-;;;###autoload
-(require 'ol)
-;;;###autoload
(org-link-set-parameters "wikipedia" ; NOTE: use `wikipedia' for future
backend changing.
:follow #'org-wikipedia-link-open
:store #'org-wikipedia-store-link
:export #'org-wikipedia-link-export)
-;;;###autoload
(add-hook 'org-store-link-functions 'org-wikipedia-store-link t)
(defun kiwix-mode-enable ()