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: Michael Brand
Subject: Re: [O] Org campture recursively expands %-escapes
Date: Sun, 3 Jan 2016 12:44:13 +0100

Hi Nicolas

On Sun, Nov 29, 2015 at 5:00 PM, Nicolas Goaziou <address@hidden> wrote:
> I committed a patch along those lines in master. Please let me know if
> anything goes wrong with capture templates.

release_8.3.2-350-gbd3a2cb introduces a regression of "%()" in Org
feed templates. See
- commit release_7.8.10-1057-g042db37
- (commit release_7.8.10-1068-ge1d5a31)
- http://thread.gmane.org/gmane.emacs.orgmode/56991

I just wrote an ERT for this functionality, can you please add it?:

(should
 (string=
  "5 % Less (See\n Item \"3)\" Somewhere)\n Of THE [[http://orgmode.org]]\n [2016-01-02 Sat]"
  (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)))

Michael

reply via email to

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