From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Hofert Subject: org-capture-template: How to correctly capture email addresses? Date: Sun, 6 Nov 2011 11:49:31 +0100 Message-ID: Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RN0IB-0000Q4-AC for emacs-orgmode@gnu.org; Sun, 06 Nov 2011 05:49:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RN0IA-0000G4-51 for emacs-orgmode@gnu.org; Sun, 06 Nov 2011 05:49:35 -0500 Received: from edge20.ethz.ch ([82.130.99.26]:22742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RN0I9-0000Fw-Ur for emacs-orgmode@gnu.org; Sun, 06 Nov 2011 05:49:34 -0500 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 help Hi, I would like to capture contacts (name, email,..) with org-mode and thus = setup the following in .emacs: (setq org-capture-templates '(("t" "TODO in ~/org/agenda.org -> Tasks" entry (file+headline = "~/org/agenda.org" "Tasks") "* TODO %?\nSCHEDULED: %^t\n%U %a") ("c" "Contact in ~/org/contacts.org -> Contact" entry = (file+headline "~/org/contacts.org" "Contact") "* %?%(org-contacts-template-name) %^g :PROPERTIES: :EMAIL: %(org-contacts-template-email) :URL: :WORK: :HOME: :MOBILE: :LOCATION: :BIRTHDAY:=20 :NOTE: :END:"))) I can easily capture contacts with C-c c c, it prompts for the name, a = tag, and the email address. However, instead of an output like=20 * My contact :my.tag: :PROPERTIES: :EMAIL: my.contact@my.mail.com :URL: :WORK: :HOME: :MOBILE: :LOCATION: :BIRTHDAY:=20 :NOTE: :END: I obtain: * My contact :my.tag: :PROPERTIES: :EMAIL: :URL: :WORK: :HOME: :MOBILE: :LOCATION: :BIRTHDAY:=20 :NOTE: :EMAIL: my.contact@my.mail.com :END: So the problem is that the first :EMAIL: is ignored and instead a second = :EMAIL: is inserted before :END:. How can I obtain the correct output = (as described above)? Cheers, Marius=