[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] capture templates and ^{prompt}
From: |
Jean-Christophe Helary |
Subject: |
Re: [O] capture templates and ^{prompt} |
Date: |
Wed, 5 Jul 2017 09:17:26 +0900 |
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 <address@hidden> wrote:
>
>>
>> On Jun 30, 2017, at 18:47, Nicolas Goaziou <address@hidden> wrote:
>>
>> Jean-Christophe Helary <address@hidden> 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
- Re: [O] capture templates and ^{prompt},
Jean-Christophe Helary <=