[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-contacts 0501463909 149/154: Also detect whether or
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-contacts 0501463909 149/154: Also detect whether org API function `org-add-link-type' available. |
Date: |
Fri, 9 Sep 2022 15:58:56 -0400 (EDT) |
branch: externals/org-contacts
commit 0501463909d3d10432c7948517146bff2d471293
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>
Also detect whether org API function `org-add-link-type' available.
---
org-contacts.el | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/org-contacts.el b/org-contacts.el
index a965bc51d9..8e75884335 100644
--- a/org-contacts.el
+++ b/org-contacts.el
@@ -1212,7 +1212,8 @@ link string and return the pure link target."
;; so everything is in order for its use in Org files
(if (fboundp 'org-link-set-parameters)
(org-link-set-parameters "tel")
- (org-add-link-type "tel"))
+ (if (fboundp 'org-add-link-type)
+ (org-add-link-type "tel")))
(defun org-contacts-split-property (string &optional separators omit-nulls)
"Custom version of `split-string'.
@@ -1259,7 +1260,8 @@ are effectively trimmed). If nil, all zero-length
substrings are retained."
:complete #'org-contacts-link-complete
:store #'org-contacts-link-store
:face 'org-contacts-link-face)
- (org-add-link-type "org-contact" 'org-contacts-link-open))
+ (if (fboundp 'org-add-link-type)
+ (org-add-link-type "org-contact" 'org-contacts-link-open)))
;;;###autoload
(defun org-contacts-link-store ()
@@ -1353,7 +1355,8 @@ Each element has the form (NAME . (FILE . POSITION))."
;;; org-mode link "mailto:" email completion.
(if (fboundp 'org-link-set-parameters)
(org-link-set-parameters "mailto" :complete
#'org-contacts-mailto-link-completion)
- (org-add-link-type "mailto"))
+ (if (fboundp 'org-add-link-type)
+ (org-add-link-type "mailto")))
(defun org-contacts-mailto-link--get-all-emails ()
"Retrieve all org-contacts EMAIL property values."
- [elpa] externals/org-contacts af3a5cb6fa 102/154: org-contacts.el: replace obsolete alias `loop' with `cl-loop', (continued)
- [elpa] externals/org-contacts af3a5cb6fa 102/154: org-contacts.el: replace obsolete alias `loop' with `cl-loop', ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 2c0bb90259 097/154: contrib/lisp/org-contacts.el: Add stardiviner as the maintainer, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts ca3b10d5a8 098/154: org-contacts.el: Fix org-store-link error caused by org-contacts, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 0e33f05c4e 105/154: org-contacts.el: Fix store link function does not return link., ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 3d9181c0c4 104/154: org-contacts.el: Use `bound-and-true-p' to check (unbound) var, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 3fa6b4c36b 120/154: Add package introduction in README, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 507e48cbd1 116/154: add README.org, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 986a5b3280 109/154: Prefer HTTPS to HTTP in most links, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 85dd965906 126/154: Remove testing code, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 39c7aba7dc 127/154: Remove all-completions code logic, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 0501463909 149/154: Also detect whether org API function `org-add-link-type' available.,
ELPA Syncer <=
- [elpa] externals/org-contacts fe466ab2ae 139/154: Add org-mode mailto: link type :complete supporting, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 03a563b471 135/154: Add autoload cookies for org-link functions, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 3e075cdee4 123/154: Fix most of the compiler wanrings and add `Version:', ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 919511eb86 154/154: Adding org-contacts to GNU ELPA, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 2916aae933 144/154: Fix warning: Invalid face reference: quote. Invalid face attribute :inherit 'org-link, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 84436fd7bc 136/154: Fix org-contacts file narrowed not widen recovered bug., ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts e64df72db4 094/154: Rationalize `org-link-(un)escape', ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 478dfcc9b7 096/154: org-contacts.el: Add new link type "contact:", ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 2f8b3f024c 108/154: Prefer HTTPS to HTTP for links to gnu.org, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts f64d6edcd0 121/154: Update source code metadata keywords and usage description, ELPA Syncer, 2022/09/09