[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/kiwix 7fda411 184/192: fix org-link-set-parameters func
From: |
Stefan Monnier |
Subject: |
[elpa] externals/kiwix 7fda411 184/192: fix org-link-set-parameters functions not available when Org not loaded |
Date: |
Sat, 19 Dec 2020 00:41:57 -0500 (EST) |
branch: externals/kiwix
commit 7fda4115d5f762f9a2c1db10406ab2562119050e
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>
fix org-link-set-parameters functions not available when Org not loaded
---
.gitignore | 1 +
kiwix.el | 3 ---
org-kiwix.el | 17 ++++++++---------
3 files changed, 9 insertions(+), 12 deletions(-)
diff --git a/.gitignore b/.gitignore
index 9b4291b..044805e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
# Packaging
.cask
+/*~
diff --git a/kiwix.el b/kiwix.el
index 178d58d..f773c37 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -40,9 +40,6 @@
(require 'request)
(if (featurep 'ivy) (require 'ivy))
-(autoload 'org-link-set-parameters "org")
-(autoload 'org-store-link-props "org")
-
(defgroup kiwix-mode nil
"Kiwix customization options."
:group 'kiwix-mode)
diff --git a/org-kiwix.el b/org-kiwix.el
index 6ccc672..7f293b0 100644
--- a/org-kiwix.el
+++ b/org-kiwix.el
@@ -1,6 +1,6 @@
;;; org-kiwix.el --- Org Mode link support -*- lexical-binding: t; -*-
-;;; Time-stamp: <2020-04-28 10:38:02 stardiviner>
+;;; Time-stamp: <2020-05-04 07:04:56 stardiviner>
;;; Commentary:
@@ -110,14 +110,13 @@
(completing-read "Available keywords: " keywords))))
;;;###autoload
-(org-link-set-parameters "wikipedia" ; NOTE: use `wikipedia' for future
backend changing.
- :follow #'org-wikipedia-open-link
- :store #'org-wikipedia-store-link
- :export #'org-wikipedia-export-link
- :complete #'org-wikipedia-complete-link)
-
-;;;###autoload
-(add-hook 'org-store-link-functions 'org-wikipedia-store-link t)
+(with-eval-after-load 'org
+ (org-link-set-parameters "wikipedia" ; NOTE: use `wikipedia' for future
backend changing.
+ :follow #'org-wikipedia-open-link
+ :store #'org-wikipedia-store-link
+ :export #'org-wikipedia-export-link
+ :complete #'org-wikipedia-complete-link)
+ (add-hook 'org-store-link-functions 'org-wikipedia-store-link t))
- [elpa] externals/kiwix d7c4778 162/192: select library require matched in candidates, (continued)
- [elpa] externals/kiwix d7c4778 162/192: select library require matched in candidates, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 5b5b117 163/192: improve the kiwix-query URL to use the search API, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix f4a1e2d 164/192: rename function* -> cl-function, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix cf6fc32 165/192: add :status-code handler, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 3fe879f 168/192: refresh libraries before selecting library, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 716c5f6 169/192: Docker container launch command use library.xml index file, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix cd95bc9 171/192: update README: using libraries index file "library.xml", Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 9db0a13 172/192: display screenshots at beginning, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 5f64044 175/192: support detect whether query is chinese, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 6c6c443 176/192: fix Org link open function, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 7fda411 184/192: fix org-link-set-parameters functions not available when Org not loaded,
Stefan Monnier <=
- [elpa] externals/kiwix 5bd84a6 187/192: select kiwix library when completing org link, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix d92a371 189/192: Fix some byte-compile warnings, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 905a413 192/192: Fix #4 add GNU license info in package source code file, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 2d33910 072/192: Merge tag 'v0.5.0' into develop, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix bf128fb 087/192: Merge branch 'hotfix/void-function_org-link-set-parameters', Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix f3a2d8f 091/192: Merge branch 'release/0.6.1', Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix f84b449 070/192: autoload Org-mode link adding, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 3485131 071/192: Merge branch 'develop', Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 21b5dfe 073/192: fix variable invalid for autoload kiwix, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix f86cb0d 075/192: Merge tag 'v0.5.1' into develop, Stefan Monnier, 2020/12/19