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: Sat, 09 Jan 2016 18:54:47 +0100

Michael Brand <address@hidden> writes:

> My current ERT for test-org-feed.el
>
>    (equal
>     "5 % Less (See\n Item \"3)\" Somewhere)"
>     (org-feed-format-entry
>      '(:title "5 % less (see\n item \"3)\" somewhere)")
>      "%(capitalize \"%h\")" nil))
>
> works now too. What does not work yet is my backport of the above ERT
> to test-org-capture.el:
>
>    (equal
>     "5 % Less (See\n Item \"3)\" Somewhere)\n"
>     (let ((org-store-link-plist nil))
>       (org-capture-fill-template
>        "%(capitalize \"%i\")"
>        "5 % less (see\n item \"3)\" somewhere)")))
>
> Am I doing something wrong?

I think you're mis-using "%i" place-holder. One feature is to repeat the
leading text, so that, when you write, for example "> %i", "> " is
repeated every line.

Regards,



reply via email to

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