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 12:44:13 +0100 Message-ID: References: <874mgb9gqv.fsf@nicolasgoaziou.fr> <87d1uwpm1a.fsf@nicolasgoaziou.fr> <87610o2wkz.fsf@nicolasgoaziou.fr> <87io4kn6cn.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b86c8aa08892d05286c861b Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFh55-0002K8-UO for emacs-orgmode@gnu.org; Sun, 03 Jan 2016 06:44:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aFh54-0000Tj-Uw for emacs-orgmode@gnu.org; Sun, 03 Jan 2016 06:44:15 -0500 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:35607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFh54-0000TW-OE for emacs-orgmode@gnu.org; Sun, 03 Jan 2016 06:44:14 -0500 Received: by mail-wm0-x22b.google.com with SMTP id f206so113534925wmf.0 for ; Sun, 03 Jan 2016 03:44:14 -0800 (PST) In-Reply-To: <87io4kn6cn.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 Cc: Thomas Preindl --047d7b86c8aa08892d05286c861b Content-Type: text/plain; charset=UTF-8 Hi Nicolas On Sun, Nov 29, 2015 at 5:00 PM, Nicolas Goaziou 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 --047d7b86c8aa08892d05286c861b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Nicolas

On Sun, Nov 29, 2015 at 5:00 PM, Nicolas= Goaziou <mail@nicolasgoaziou.= fr> 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 pleas= e add it?:

(should
=C2=A0(string=3D
=C2=A0 "5 % Less (See= \n Item \"3)\" Somewhere)\n Of THE [[http://orgmode.org]]\n [2016-01-02 Sat]"
=C2=A0 (org-feed-fo= rmat-entry
=C2=A0=C2=A0 '(:title "5 % less (see\n item \"3= )\" somewhere)"=C2=A0 ; %h
=C2=A0=C2=A0=C2=A0=C2=A0 :link &quo= t;http://ORGMODE.org"=C2=A0 ; %a=C2=A0=C2=A0=C2=A0=C2=A0 :pubDate "Sat, 02 Jan 2016 12:00:00 +0000&qu= ot;)=C2=A0 ; %u
=C2=A0=C2=A0 "%(capitalize \"%h\n of\") T= HE %(downcase \"%a\") %u"
=C2=A0=C2=A0 nil)))

Mich= ael
--047d7b86c8aa08892d05286c861b--