branch: externals/kiwix
commit 44a44cbb7f295182d7c214eb27a2e2376680fa38
Author: stardiviner <[email protected]>
Commit: stardiviner <[email protected]>
autoload org related functions
---
kiwix.el | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/kiwix.el b/kiwix.el
index c6439f4..8f48636 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -37,11 +37,12 @@
(require 'cl-lib)
-;; load for `org-link-set-parameters'
-;;;###autoload
-(require 'org)
+
;;;###autoload
(declare-function 'org-link-set-parameters "org")
+(autoload 'org-link-set-parameters "org")
+(declare-function 'org-store-link-props "org")
+(autoload 'org-store-link-props "org")
(defgroup kiwix-mode nil
"Kiwix customization options."
@@ -325,10 +326,9 @@ for query string and library interactively."
(let* ((query (read-string "Wikipedia Query with Kiwix: "))
(library (kiwix-select-library-name))
(link (concat "wikipedia:" "(" library "):" query)))
- (org-store-link-props
- :type "wikipedia"
- :link link
- :description query)
+ (org-store-link-props :type "wikipedia"
+ :link link
+ :description query)
link)))
(defvar kiwix-mode-map