summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Thum <simon.thum@gmx.de>2016-02-13 17:20:05 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2016-02-25 10:14:25 +0100
commitaa78158036231a07a132b73bd799a4ecb3b56154 (patch)
treea0873ce9c15379ed5cb2a332b3ab43dad08c99bf
parente278cffa3b4f451f22e8b98d1c40f6e33e6e98ed (diff)
downloadorg-mode-aa78158036231a07a132b73bd799a4ecb3b56154.tar.gz
org-contacts: Register "tel" link
This has the added benefit of not screwing up the exporter. Signed-off-by: Simon Thum <simon.thum@gmx.de>
-rw-r--r--contrib/lisp/org-contacts.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/lisp/org-contacts.el b/contrib/lisp/org-contacts.el
index 3236a7c..1aa2cab 100644
--- a/contrib/lisp/org-contacts.el
+++ b/contrib/lisp/org-contacts.el
@@ -1113,6 +1113,11 @@ link string and return the pure link target."
(setq colonpos (string-match ":" link))
(if startpos (substring link (1+ colonpos)) link)))))
+;; Add the link type supported by org-contacts-strip-link
+;; so everything is in order for its use in Org files
+(org-add-link-type "tel")
+
+
(defun org-contacts-split-property (string &optional separators omit-nulls)
"Custom version of `split-string'.
Split a property STRING into sub-strings bounded by matches