From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Christophe Helary Subject: Re: capture templates and ^{prompt} Date: Wed, 5 Jul 2017 09:17:26 +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]:46847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSY0c-0001rC-AW for emacs-orgmode@gnu.org; Tue, 04 Jul 2017 20:17:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSY0Z-000081-64 for emacs-orgmode@gnu.org; Tue, 04 Jul 2017 20:17:34 -0400 Received: from mail-pg0-x22d.google.com ([2607:f8b0:400e:c05::22d]:34612) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSY0Y-00007a-Vq for emacs-orgmode@gnu.org; Tue, 04 Jul 2017 20:17:31 -0400 Received: by mail-pg0-x22d.google.com with SMTP id t186so116172491pgb.1 for ; Tue, 04 Jul 2017 17:17:30 -0700 (PDT) Received: from [192.168.24.55] (pl2587.ag0304.nttpc.ne.jp. [128.53.196.27]) by smtp.gmail.com with ESMTPSA id z74sm32504461pfd.112.2017.07.04.17.17.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2017 17:17:28 -0700 (PDT) In-Reply-To: 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 Sorry to send this question again: > Are there cases where %\1 ... %\N would be used *outside* of a string = in a template? Jean-Christophe=20 > On Jun 30, 2017, at 20:04, Jean-Christophe Helary = wrote: >=20 >>=20 >> 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 >=20 > That's certainly something to add to the documentation: >=20 > %\1 ... %\N Insert the text entered at the Nth %^{prompt}, where N = is a number, starting from 1. >=20 > Are there cases where %\1 ... %\N would be used *outside* of a string = in a template? >=20 > Jean-Christophe