From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Org campture recursively expands %-escapes Date: Sun, 3 Jan 2016 21:39:07 +0100 Message-ID: References: <874mgb9gqv.fsf@nicolasgoaziou.fr> <87d1uwpm1a.fsf@nicolasgoaziou.fr> <87610o2wkz.fsf@nicolasgoaziou.fr> <87io4kn6cn.fsf@nicolasgoaziou.fr> <87oad2qw4z.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11444e3cfd2a2d052873fe3f Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFpQj-0000dQ-So for emacs-orgmode@gnu.org; Sun, 03 Jan 2016 15:39:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aFpQi-0001V4-Mj for emacs-orgmode@gnu.org; Sun, 03 Jan 2016 15:39:09 -0500 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:38556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFpQi-0001V0-GL for emacs-orgmode@gnu.org; Sun, 03 Jan 2016 15:39:08 -0500 Received: by mail-wm0-x22b.google.com with SMTP id b14so159553100wmb.1 for ; Sun, 03 Jan 2016 12:39:08 -0800 (PST) In-Reply-To: <87oad2qw4z.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode --001a11444e3cfd2a2d052873fe3f Content-Type: text/plain; charset=UTF-8 Hi Nicolas On Sun, Jan 3, 2016 at 8:51 PM, Nicolas Goaziou wrote: > > Michael Brand writes: > > > 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))) > > I read the thread but I'm not sure where the regression is. Could you > elaborate on what is failing here? The above ERT that I would like to be added succeeds on release_8.3.2-349-gbd79085 and fails on release_8.3.2-350-gbd3a2cb. Michael --001a11444e3cfd2a2d052873fe3f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Nicolas

On Sun, Jan 3, 2016 at 8:51 PM, Nicolas = Goaziou <mail@nicolasgoaziou.f= r> wrote:
>
> Michael Brand <michael.ch.brand@gmail.com> writes:
>> > release_8.3.2-350-gbd3a2cb introduces a regression of "%()&= quot; in Org
> > feed templates. See
> > - commit release= _7.8.10-1057-g042db37
> > - (commit release_7.8.10-1068-ge1d5a31)<= br>> > - http://thread.gmane.org/gmane.emacs.orgmode/56991
> >
>= ; > I just wrote an ERT for this functionality, can you please add it?:<= br>> >
> > (should
> >=C2=A0 (string=3D
> >= ;=C2=A0=C2=A0 "5 % Less (See\n Item \"3)\" Somewhere)\n Of T= HE [[http://orgmode.org]]\n
> >= [2016-01-02 Sat]"
> >=C2=A0=C2=A0 (org-feed-format-entry
= > >=C2=A0=C2=A0=C2=A0 '(:title "5 % less (see\n item \"= 3)\" somewhere)"=C2=A0 ; %h
> >=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 :link "http://ORGMODE.org&qu= ot;=C2=A0 ; %a
> >=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 :pubDate "Sa= t, 02 Jan 2016 12:00:00 +0000")=C2=A0 ; %u
> >=C2=A0=C2=A0=C2= =A0 "%(capitalize \"%h\n of\") THE %(downcase \"%a\&quo= t;) %u"
> >=C2=A0=C2=A0=C2=A0 nil)))
>
> I read t= he thread but I'm not sure where the regression is. Could you
> e= laborate on what is failing here?

The above ERT that I would like to= be added succeeds on
release_8.3.2-349-gbd79085 and fails on release_8.= 3.2-350-gbd3a2cb.

Michael
--001a11444e3cfd2a2d052873fe3f--