mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 18:36:26 +00:00
Document backslash escaping rule in capture templates
* doc/org.texi (Template expansion): Document backslash escaping rule in capture templates. Reported-by: Peter Tomhas <peter.tomhas@gmail.com> <http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00429.html>
This commit is contained in:
parent
91c68865c6
commit
d01ee01d52
|
@ -7316,7 +7316,11 @@ dynamic insertion of content. The templates are expanded in the order given her
|
|||
@r{%^@{prompt|default|completion2|completion3...@}.}
|
||||
@r{The arrow keys access a prompt-specific history.}
|
||||
%\1 @dots{} %\N @r{Insert the text entered at the Nth %^@{@var{prompt}@}, where @code{N} is}
|
||||
@r{a number, starting from 1.}
|
||||
@r{a number, starting from 1.@footnote{As required in Emacs
|
||||
Lisp, it is necessary to escape any backslash character in
|
||||
a string with another backslash. So, in order to use
|
||||
@samp{%\1} placeholder, you need to write @samp{%\\1} in
|
||||
the template.}}
|
||||
%? @r{After completing the template, position cursor here.}
|
||||
@end smallexample
|
||||
|
||||
|
|
Loading…
Reference in a new issue