From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Christophe Helary Subject: Re: capture templates and ^{prompt} Date: Fri, 30 Jun 2017 20:04:06 +0900 Message-ID: References: <87zicpoli6.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQtih-0007PH-Bt for emacs-orgmode@gnu.org; Fri, 30 Jun 2017 07:04:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQtic-00020h-El for emacs-orgmode@gnu.org; Fri, 30 Jun 2017 07:04:15 -0400 Received: from mail-pg0-x22b.google.com ([2607:f8b0:400e:c05::22b]:35459) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dQtic-0001zt-9C for emacs-orgmode@gnu.org; Fri, 30 Jun 2017 07:04:10 -0400 Received: by mail-pg0-x22b.google.com with SMTP id j186so62182197pge.2 for ; Fri, 30 Jun 2017 04:04:10 -0700 (PDT) Received: from [192.168.24.55] (pl2587.ag0304.nttpc.ne.jp. [128.53.196.27]) by smtp.gmail.com with ESMTPSA id f24sm17752518pff.74.2017.06.30.04.04.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Jun 2017 04:04:08 -0700 (PDT) In-Reply-To: <87zicpoli6.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" To: Org-mode > On Jun 30, 2017, at 18:47, Nicolas Goaziou = wrote: >=20 > Jean-Christophe Helary writes: >=20 >> * TODO %^{prompt} [/]\n** TODO %\1 %^{prompt} %^t\n >>=20 >> gives >>=20 >> * TODO stuff [/] = =20 >> ** TODO %^A stuff >>=20 >> Why is that ? >=20 > In a string, backslash needs to be escaped: %\\1 That's certainly something to add to the documentation: %\1 ... %\N Insert the text entered at the Nth %^{prompt}, where N = is a number, starting from 1. Are there cases where %\1 ... %\N would be used *outside* of a string in = a template? Jean-Christophe