From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juan Subject: Re: Re: [PATCH] org-capture with LISP function template Date: Mon, 19 Jul 2010 09:26:44 -0300 Message-ID: <20100719122644.GJ5569@soloJazz.com> References: <20100719014552.GI5569@soloJazz.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=46014 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OapQp-0004fj-OO for emacs-orgmode@gnu.org; Mon, 19 Jul 2010 08:26:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OapQo-0002Eh-Mv for emacs-orgmode@gnu.org; Mon, 19 Jul 2010 08:26:51 -0400 Received: from cpoproxy1-pub.bluehost.com ([69.89.21.11]:38786) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OapQo-0002EH-E3 for emacs-orgmode@gnu.org; Mon, 19 Jul 2010 08:26:50 -0400 Content-Disposition: inline In-Reply-To: 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: Carsten Dominik Cc: emacs-orgmode@gnu.org 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. 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.