emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Org campture recursively expands %-escapes


From: Nicolas Goaziou
Subject: Re: [O] Org campture recursively expands %-escapes
Date: Wed, 06 Jan 2016 00:39:46 +0100

Michael Brand <address@hidden> writes:

> When you evaluate
>
> (progn
>   (require 'org-feed)
>   (org-feed-format-entry
>    '(:title "5 % less (see\n item \"3)\" somewhere)"  ; %h
>      :link "http://ORGMODE.org";  ; %a
>      :pubDate "Sat, 02 Jan 2016 12:00:00 +0000")  ; %u
>    "%(capitalize \"%h\n of\") THE %(downcase \"%a\") %u"
>    nil))
>
> do you get the expected "Lisp error: (void-function
> org-capture-expand-embedded-elisp)" like me on
> release_8.3.2-350-gbd3a2cb and today's release_8.3.2-441-ga87dea3 ?

I do. Somehow, I didn't see this before. This is because I renamed
`org-capture-expand-embedded-elisp' into
`org-capture--expand-embedded-elisp'.

However, ISTM there is some code duplication between
`org-feed-format-entry' and `org-capture-fill-template'. Is calling
`org-capture-expand-embedded-elisp' from the former the right thing to
do?

Regards,



reply via email to

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