From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Org campture recursively expands %-escapes Date: Sat, 09 Jan 2016 18:54:47 +0100 Message-ID: <87k2nik594.fsf@nicolasgoaziou.fr> 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: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHxhA-0003LX-TW for emacs-orgmode@gnu.org; Sat, 09 Jan 2016 12:52:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHxh5-0003SQ-UH for emacs-orgmode@gnu.org; Sat, 09 Jan 2016 12:52:56 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:43847) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHxh5-0003SM-OD for emacs-orgmode@gnu.org; Sat, 09 Jan 2016 12:52:51 -0500 In-Reply-To: (Michael Brand's message of "Sat, 9 Jan 2016 17:31:00 +0100") 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 Cc: Org Mode Michael Brand 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,