emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: [PATCH] org-capture with LISP function template


From: Carsten Dominik
Subject: Re: [Orgmode] Re: [PATCH] org-capture with LISP function template
Date: Mon, 19 Jul 2010 14:43:27 +0200


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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]