Sorry to send this question again: > Are there cases where %\1 ... %\N would be used *outside* of a string in a > template?
Jean-Christophe > On Jun 30, 2017, at 20:04, Jean-Christophe Helary > <jean.christophe.hel...@gmail.com> wrote: > >> >> On Jun 30, 2017, at 18:47, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote: >> >> Jean-Christophe Helary <jean.christophe.hel...@gmail.com> writes: >> >>> * TODO %^{prompt} [/]\n** TODO %\1 %^{prompt} %^t\n >>> >>> gives >>> >>> * TODO stuff [/] >>> >>> ** TODO %^A stuff <date> >>> >>> Why is that ? >> >> 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