[Top][All Lists]

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

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

From: Michael Brand
Subject: Re: [O] Org campture recursively expands %-escapes
Date: Sat, 9 Jan 2016 16:53:08 +0100

Hi Nicolas

On Fri, Jan 8, 2016 at 11:44 PM, Nicolas Goaziou <address@hidden> wrote:
> Michael Brand <address@hidden> writes:
> > I'm porting test-org-capture.el to test-org-feed.el and found this
> > issue in org-feed-format-entry: Evaluation of
> >
> >     (org-feed-format-entry '(:title "success!") "\\\\%h" nil)
> >
> > with Emacs 24.5 results in "Lisp error: (args-out-of-range #<buffer
> > *temp*> 4 5)". The Lisp error disappears when single stepping with
> > Edebug but then org-feed-format-entry returns "\\%h" instead of the
> > expected "\\success!". To my understanding the problem seems to be
> > that org-capture-escaped-% messes up the match data which leads to an
> > empty variable with the name "replacement". I wonder why this problem
> > is not showing up in org-capture-fill-template too.
> Fixed, too. Thank you.

Yes, thank you.

On the other hand commit release_8.3.3-415-ge2fbaee breaks the ERT
that I suggested in this thread or its simplification here:

    (require 'org-feed)
    (equal "\"A)" (org-feed-format-entry
                   '(:title "\"a)") "%(capitalize \"%h\")" nil)))


reply via email to

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