emacs-orgmode
[Top][All Lists]
Advanced

[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: Fri, 30 Jun 2017 20:04:06 +0900

> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]