emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Juan <pechiar@computer.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: [PATCH] org-capture with LISP function template
Date: Mon, 19 Jul 2010 14:43:27 +0200	[thread overview]
Message-ID: <765B4DD7-82B9-4561-9C83-00AB82032C19@gmail.com> (raw)
In-Reply-To: <20100719122644.GJ5569@soloJazz.com>


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	other threads:[~2010-07-19 12:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-19  1:45 [PATCH] org-capture with LISP function template Juan Pechiar
2010-07-19  7:05 ` Carsten Dominik
2010-07-19 12:26   ` Juan
2010-07-19 12:43     ` Carsten Dominik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=765B4DD7-82B9-4561-9C83-00AB82032C19@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=pechiar@computer.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).