From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Thum Subject: Small org-contacts patch Date: Sun, 22 Sep 2013 17:01:57 +0200 Message-ID: <523F0665.9020803@gmx.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020702020106050305060008" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNlAl-0005Yo-Lx for emacs-orgmode@gnu.org; Sun, 22 Sep 2013 11:02:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VNlAf-0001dU-SS for emacs-orgmode@gnu.org; Sun, 22 Sep 2013 11:02:07 -0400 Received: from mout.gmx.net ([212.227.15.19]:55256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNlAf-0001d7-B4 for emacs-orgmode@gnu.org; Sun, 22 Sep 2013 11:02:01 -0400 Received: from [192.168.2.100] ([188.107.197.97]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0Li1hG-1VjObM3yr4-00nAui for ; Sun, 22 Sep 2013 17:01:59 +0200 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 This is a multi-part message in MIME format. --------------020702020106050305060008 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi all, the attached patch solves the problem of having hexified strings in hte vCard export. It happens when you are entering tel: links and phone numbers that start with `+`. The plus sign causes the link insert helper to hexify the url. In tel: links the plus makes sense for international numbers. The C-c C-l helper makes that [[tel:%-encoded glibberish][tel:+49 xxx]] with the %-encoded part ending up in vCards. Which my phone accepts but does not dial properly. So far I cleaned them manually but this seems a better solution. Cheers, Simon --------------020702020106050305060008 Content-Type: text/x-patch; name="0001-un-hexify-TEL-links-in-vCard-export.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-un-hexify-TEL-links-in-vCard-export.patch" >From 8a1fdc7f87425fc6f7d6909fc9dc10cc0ca1745d Mon Sep 17 00:00:00 2001 From: Simon Thum Date: Sun, 22 Sep 2013 13:43:06 +0200 Subject: [PATCH] un-hexify TEL links in vCard export This is required as a plus sign (e.g. +49 for germany) will cause hexification in the link helper. contrib/lisp/org-contacts.el: unhexify tel link TINYCHANGE --- contrib/lisp/org-contacts.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/lisp/org-contacts.el b/contrib/lisp/org-contacts.el index 97171d0..dbbc057 100644 --- a/contrib/lisp/org-contacts.el +++ b/contrib/lisp/org-contacts.el @@ -946,7 +946,7 @@ to do our best." (setq phones-list (org-contacts-remove-ignored-property-values ignore-list (org-contacts-split-property tel))) (setq result "") (while phones-list - (setq result (concat result "TEL:" (org-contacts-strip-link (car phones-list)) "\n")) + (setq result (concat result "TEL:" (org-link-unescape (org-contacts-strip-link (car phones-list))) "\n")) (setq phones-list (cdr phones-list))) result)) (when bday -- 1.8.1.5 --------------020702020106050305060008--