emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Simon Thum <simon.thum@gmx.de>
To: emacs-orgmode@gnu.org
Cc: Nicolas Goaziou <n.goaziou@gmail.com>
Subject: Re: Icalendar export and contacts
Date: Sat, 13 Feb 2016 21:59:57 +0100	[thread overview]
Message-ID: <56BF994D.4070001@gmx.de> (raw)
In-Reply-To: <87vb5t4klp.fsf@nicolasgoaziou.fr>

[-- Attachment #1: Type: text/plain, Size: 553 bytes --]

Hi,

would the attached patch be enough?

Cheers,

Simon

On 02/12/2016 11:41 PM, Nicolas Goaziou wrote:
> Hello,
>
> Simon Thum <simon.thum@gmx.de> 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,
>

[-- Attachment #2: 0001-Register-tel-link-from-org-contacts.patch --]
[-- Type: text/x-patch, Size: 1081 bytes --]

From fe28fb1eec7b8435f2ce9d30853fc3df707149c4 Mon Sep 17 00:00:00 2001
From: Simon Thum <simon.thum@gmx.de>
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 <simon.thum@gmx.de>
---
 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


  reply	other threads:[~2016-02-13 20:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-11 21:28 Icalendar export and contacts Simon Thum
2016-02-11 23:01 ` Nicolas Goaziou
2016-02-12  7:42   ` Simon Thum
2016-02-12 22:41     ` Nicolas Goaziou
2016-02-13 20:59       ` Simon Thum [this message]
2016-02-20 12:55         ` Nicolas Goaziou
2016-02-21 16:17           ` Simon Thum
2016-02-25  9:15             ` Nicolas Goaziou
2016-02-12  8:29   ` Simon Thum
2016-02-12 22:43     ` Nicolas Goaziou
2016-02-13 11:09       ` Simon Thum
2016-02-14 16:49         ` Nicolas Goaziou
2016-02-14 21:06           ` Simon Thum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56BF994D.4070001@gmx.de \
    --to=simon.thum@gmx.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).