From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Thum Subject: Re: Icalendar export and contacts Date: Sat, 13 Feb 2016 21:59:57 +0100 Message-ID: <56BF994D.4070001@gmx.de> References: <56BCFD09.2030408@gmx.de> <874mde6ecr.fsf@nicolasgoaziou.fr> <56BD8CF1.7060905@gmx.de> <87vb5t4klp.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050608050008050000070203" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUhHe-0006Co-Hl for emacs-orgmode@gnu.org; Sat, 13 Feb 2016 15:59:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUhHb-000168-8L for emacs-orgmode@gnu.org; Sat, 13 Feb 2016 15:59:14 -0500 Received: from mout.gmx.net ([212.227.15.18]:51954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUhHa-000164-UX for emacs-orgmode@gnu.org; Sat, 13 Feb 2016 15:59:11 -0500 In-Reply-To: <87vb5t4klp.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: Nicolas Goaziou This is a multi-part message in MIME format. --------------050608050008050000070203 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Hi, would the attached patch be enough? Cheers, Simon On 02/12/2016 11:41 PM, Nicolas Goaziou wrote: > Hello, > > Simon Thum writes: > >> do you refer to master, maint or something else? I'm on 8.3 but am >> considering an upgrade. > > Development version = master. > >> Also I think org-contacts should declare the link type if it has >> support for it (in the vcard export). I'd be happy to do that if it >> can be done as a TINYCHANGE. > > org-contacts is in contrib/ directory. TINYCHANGE tag is not required. > > Regards, > --------------050608050008050000070203 Content-Type: text/x-patch; name="0001-Register-tel-link-from-org-contacts.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Register-tel-link-from-org-contacts.patch" >From fe28fb1eec7b8435f2ce9d30853fc3df707149c4 Mon Sep 17 00:00:00 2001 From: Simon Thum Date: Sat, 13 Feb 2016 17:20:05 +0100 Subject: [PATCH] Register tel link from org-contacts This has the added benefit of not screwing up the exporter. Signed-off-by: Simon Thum --- contrib/lisp/org-contacts.el | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.1.3 --------------050608050008050000070203--