From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: [PATCH] org-capture with LISP function template Date: Mon, 19 Jul 2010 14:43:27 +0200 Message-ID: <765B4DD7-82B9-4561-9C83-00AB82032C19@gmail.com> References: <20100719014552.GI5569@soloJazz.com> <20100719122644.GJ5569@soloJazz.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=53868 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oapng-0001Qo-Fa for emacs-orgmode@gnu.org; Mon, 19 Jul 2010 08:50:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oapgy-0004qA-1R for emacs-orgmode@gnu.org; Mon, 19 Jul 2010 08:43:33 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:48320) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oapgx-0004q4-SB for emacs-orgmode@gnu.org; Mon, 19 Jul 2010 08:43:32 -0400 Received: by ewy28 with SMTP id 28so1432136ewy.0 for ; Mon, 19 Jul 2010 05:43:30 -0700 (PDT) In-Reply-To: <20100719122644.GJ5569@soloJazz.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Juan Cc: emacs-orgmode@gnu.org On Jul 19, 2010, at 2:26 PM, Juan wrote: > Hi Carsten, > > I think the original problem is in the defcustom specification: > > org-capture.el L292 > > (choice :tag "Template" > (string) > (list :tag "File" > (const :format "" file) > (file :tag "Template file")) > (list :tag "Function" > (const :format "" function) > (file :tag "Template function"))) > > The last line should read 'sexp' instead of 'file'. This is why the > function is being held as a string. Indeed, thanks. - Carsten > > Saludos, > .j. > > On Mon, Jul 19, 2010 at 09:05:06AM +0200, Carsten Dominik wrote: >> the function must be a symbol in this setup, not a string. >> I am rejecting this patch. >> >> On Jul 19, 2010, at 3:45 AM, Juan Pechiar wrote: > >>> Below is a patch for org-capture when the template is given by a >>> LISP >>> function. >>> >>> Problem was that the function is inside a string (not a LISP >>> form), so >>> the string has to be evaluated explicitly. - Carsten