summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2017-08-19 11:10:55 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2017-08-19 11:10:55 +0200
commitd01ee01d528c896c8e14977527b842eba0dbc170 (patch)
treee17af60bd9d32cfb881cc773c8c92477c2795244
parent91c68865c644277772028faca96b7ff03541e7cf (diff)
downloadorg-mode-d01ee01d528c896c8e14977527b842eba0dbc170.tar.gz
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>
-rw-r--r--doc/org.texi6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/org.texi b/doc/org.texi
index a808a74..d74d0ec 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -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