[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-contacts 2de057e423 145/154: Make org-link-set-para
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-contacts 2de057e423 145/154: Make org-link-set-parameters <- org-add-link-type API compatible. |
Date: |
Fri, 9 Sep 2022 15:58:55 -0400 (EDT) |
branch: externals/org-contacts
commit 2de057e423861ea2da941c6f7ff955a7de49159f
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>
Make org-link-set-parameters <- org-add-link-type API compatible.
---
org-contacts.el | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/org-contacts.el b/org-contacts.el
index d705419b23..c29d9ed7cd 100644
--- a/org-contacts.el
+++ b/org-contacts.el
@@ -1206,7 +1206,9 @@ link string and return the pure link target."
;; Add the link type supported by org-contacts-strip-link
;; so everything is in order for its use in Org files
-(org-link-set-parameters "tel")
+(if (fboundp 'org-link-set-parameters)
+ (org-link-set-parameters "tel")
+ (org-add-link-type "tel"))
(defun org-contacts-split-property (string &optional separators omit-nulls)
"Custom version of `split-string'.
@@ -1247,11 +1249,13 @@ are effectively trimmed). If nil, all zero-length
substrings are retained."
;;;###autoload
;;; Add an Org link type `org-contact:' for easy jump to or searching
org-contacts headline.
;;; link spec: [[org-contact:query][desc]]
-(org-link-set-parameters "org-contact"
- :follow #'org-contacts-link-open
- :complete #'org-contacts-link-complete
- :store #'org-contacts-link-store
- :face 'org-contacts-link-face)
+(if (fboundp 'org-link-set-parameters)
+ (org-link-set-parameters "org-contact"
+ :follow #'org-contacts-link-open
+ :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))
;;;###autoload
(defun org-contacts-link-store ()
@@ -1343,7 +1347,9 @@ Each element has the form (NAME . (FILE . POSITION))."
;;; org-mode link "mailto:" email completion.
-(org-link-set-parameters "mailto" :complete
#'org-contacts-mailto-link-completion)
+(if (fboundp 'org-link-set-parameters)
+ (org-link-set-parameters "mailto" :complete
#'org-contacts-mailto-link-completion)
+ (org-add-link-type "mailto"))
(defun org-contacts-mailto-link--get-all-emails ()
"Retrieve all org-contacts EMAIL property values."
- [elpa] externals/org-contacts f5394bc0b6 147/154: Warning user that the custom variable `org-contacts-files' is nil., (continued)
- [elpa] externals/org-contacts f5394bc0b6 147/154: Warning user that the custom variable `org-contacts-files' is nil., ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 3a24177c3a 070/154: un-hexify TEL links in vCard export, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 58edab6f69 134/154: Add autoload cookirs for completing functions, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 7ed94bcf72 140/154: Fix can't get-buffer when file is not opened which caused `buf` is nil., ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 05522de61d 146/154: Setting package require versions list, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts cf8ae48b37 142/154: Add if logic on function erc-nicknames-list, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts bd83216f38 079/154: contrib/lisp/org-contacts.el: Complete contacts using tags and properties, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 2e77024e89 017/154: Copyright year fixes for contrib/., ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 4170ea25f3 090/154: Deprecate `org-find-if' in favor of `cl-find-if', ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts c1a17bf632 076/154: Merge branch 'maint', ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 2de057e423 145/154: Make org-link-set-parameters <- org-add-link-type API compatible.,
ELPA Syncer <=
- [elpa] externals/org-contacts 21d4ae5367 141/154: Improve the alternative org-contacts headline goto., ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts c1c4cadf3f 151/154: Fix Warning: Unused lexical argument, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts a50ced61ef 093/154: Update tel link definition, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts f02da8b4de 088/154: org-contacts: Register "tel" link, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 80ab4708b7 114/154: Change how completion is done, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 1b028de47c 124/154: Fix contacts complete not working problem, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts b1032119a3 152/154: Fix package-lint warnings., ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts d1298f4599 083/154: org-contacts.el: Catch `nextfile' in `org-contacts-db', ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 0a91557ef9 115/154: Tidy up whitespace, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 00560d5f4f 117/154: Try to support different type of AVATAR property., ELPA Syncer, 2022/09/09