From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Hofert Subject: Re: org-capture-template: How to correctly capture email addresses? Date: Tue, 8 Nov 2011 22:04:43 +0100 Message-ID: References: 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]:33826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNsqd-00043F-2g for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 16:04:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNsqc-0003w7-07 for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 16:04:47 -0500 Received: from edge10.ethz.ch ([82.130.75.186]:46110) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNsqb-0003w3-Ki for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 16:04:45 -0500 In-Reply-To: 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 see here: = http://stackoverflow.com/questions/8037953/org-mode-how-to-correctly-captu= re-email-addresses On 2011-11-06, at 11:49 , Marius Hofert wrote: > Hi, >=20 > I would like to capture contacts (name, email,..) with org-mode and = thus setup the following in .emacs: >=20 > (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:"))) >=20 > 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 >=20 > * My contact :my.tag: > :PROPERTIES: > :EMAIL: my.contact@my.mail.com > :URL: > :WORK: > :HOME: > :MOBILE: > :LOCATION: > :BIRTHDAY:=20 > :NOTE: > :END: >=20 > I obtain: >=20 > * My contact :my.tag: > :PROPERTIES: > :EMAIL: > :URL: > :WORK: > :HOME: > :MOBILE: > :LOCATION: > :BIRTHDAY:=20 > :NOTE: > :EMAIL: my.contact@my.mail.com > :END: >=20 > 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)? >=20 > Cheers, >=20 > Marius