emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [PATCH] Capture: Expand keyword within %(SEXP) in template


From: Nicolas Goaziou
Subject: Re: [O] [PATCH] Capture: Expand keyword within %(SEXP) in template
Date: Fri, 02 Nov 2012 15:11:12 +0100

Ryo TAKAISHI <address@hidden> writes:

> I did'nt come up with to use it.
> But "%(func %:description)" or "%(func (plist-get org-store-link-plist 
> :description))", I think the former is readble template than the latter.

Probably, but it's also more error-prone.

For example, your code operates only at top-level, i.e. it won't handle
something like:

    %(fun arg1 (sub-fun %:description))

It will also error out if any atom isn't a symbol, i.e.:

    %(format "%d" 1)

It's all about pro and cons.


Regards,

-- 
Nicolas Goaziou



reply via email to

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