From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Org campture recursively expands %-escapes Date: Sat, 9 Jan 2016 17:31:00 +0100 Message-ID: References: <874mgb9gqv.fsf@nicolasgoaziou.fr> <87d1uwpm1a.fsf@nicolasgoaziou.fr> <87610o2wkz.fsf@nicolasgoaziou.fr> <87io4kn6cn.fsf@nicolasgoaziou.fr> <87oad2qw4z.fsf@nicolasgoaziou.fr> <87bn92qsmb.fsf@nicolasgoaziou.fr> <87lh837fzx.fsf@nicolasgoaziou.fr> <87h9ipqrez.fsf@nicolasgoaziou.fr> <8737u7lmhg.fsf@nicolasgoaziou.fr> <87si26kab0.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c37a3ab0521e0528e93a5d Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHwPu-00058w-Im for emacs-orgmode@gnu.org; Sat, 09 Jan 2016 11:31:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHwPt-0006c6-K0 for emacs-orgmode@gnu.org; Sat, 09 Jan 2016 11:31:02 -0500 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:37567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHwPt-0006bu-AS for emacs-orgmode@gnu.org; Sat, 09 Jan 2016 11:31:01 -0500 Received: by mail-wm0-x22f.google.com with SMTP id f206so211976314wmf.0 for ; Sat, 09 Jan 2016 08:31:01 -0800 (PST) In-Reply-To: <87si26kab0.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: Michael Brand , Org Mode --001a11c37a3ab0521e0528e93a5d Content-Type: text/plain; charset=UTF-8 Hi Nicolas On Sat, Jan 9, 2016 at 5:05 PM, Nicolas Goaziou wrote: > > Michael Brand writes: > > > On the other hand commit release_8.3.3-415-ge2fbaee breaks the ERT > > that I suggested in this thread or its simplification here: > > > > (progn > > (require 'org-feed) > > (equal "\"A)" (org-feed-format-entry > > '(:title "\"a)") "%(capitalize \"%h\")" nil))) > > Hopefully, this is now fixed in master. It is, thank you. Incredibly fast 11 minutes from my report to your commit! 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? Michael --001a11c37a3ab0521e0528e93a5d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Nicolas

On Sat, Jan 9, 2016 at 5:05 PM, Nicolas = Goaziou <mail@nicolasgoaziou.f= r> wrote:
>
> Michael Brand <michael.ch.brand@gmail.com> writes:
>> > On the other hand commit release_8.3.3-415-ge2fbaee breaks the E= RT
> > that I suggested in this thread or its simplification here:=
> >
> >=C2=A0=C2=A0 (progn
> >=C2=A0=C2=A0=C2= =A0=C2=A0 (require 'org-feed)
> >=C2=A0=C2=A0=C2=A0=C2=A0 (equ= al "\"A)" (org-feed-format-entry
> >=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 '(:title "\"a)") "%(capita= lize \"%h\")" nil)))
>
> Hopefully, this is now = fixed in master.

It is, thank you. Incredibly fast 11 minutes from m= y report to your
commit!

My current ERT for test-org-feed.el
<= br>=C2=A0=C2=A0 (equal
=C2=A0=C2=A0=C2=A0 "5 % Less (See\n Item \&q= uot;3)\" Somewhere)"
=C2=A0=C2=A0=C2=A0 (org-feed-format-entry=
=C2=A0=C2=A0=C2=A0=C2=A0 '(:title "5 % less (see\n item \"= ;3)\" somewhere)")
=C2=A0=C2=A0=C2=A0=C2=A0 "%(capitalize= \"%h\")" nil))

works now too. What does not work yet= is my backport of the above ERT
to test-org-capture.el:

=C2=A0= =C2=A0 (equal
=C2=A0=C2=A0=C2=A0 "5 % Less (See\n Item \"3)\&q= uot; Somewhere)\n"
=C2=A0=C2=A0=C2=A0 (let ((org-store-link-plist n= il))
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (org-capture-fill-template
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "%(capitalize \"%i\")"=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "5 % less (see\n item \"3)= \" somewhere)")))

Am I doing something wrong?

Micha= el
--001a11c37a3ab0521e0528e93a5d--