summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2016-10-19 19:23:05 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2016-10-19 19:23:31 +0200
commite4c38ab1d3831ce1b73b9dee69e8a188876ee7f4 (patch)
tree50412ddc5cc04efe1035d3a2128964dc98c8e301
parent449f83b44c263752fa36fa3f99b98fdda2599eb0 (diff)
downloadorg-mode-e4c38ab1d3831ce1b73b9dee69e8a188876ee7f4.tar.gz
Improve documentation for capture templates
* doc/org.texi (Template expansion): * lisp/org-capture.el (org-capture-templates): Clarify documentation. Suggested-by: Stig Brautaset <stig@brautaset.org> <http://permalink.gmane.org/gmane.emacs.orgmode/109844>
-rw-r--r--doc/org.texi2
-rw-r--r--lisp/org-capture.el2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/org.texi b/doc/org.texi
index ca06598..53bde44 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -7306,7 +7306,7 @@ dynamic insertion of content. The templates are expanded in the order given her
@r{You may specify a default value and a completion table with}
@r{%^@{prompt|default|completion2|completion3...@}.}
@r{The arrow keys access a prompt-specific history.}
-%\\n @r{Insert the text entered at the nth %^@{@var{prompt}@}, where @code{n} is}
+%\1 %@dots{} %\N @r{Insert the text entered at the Nth %^@{@var{prompt}@}, where @code{N} is}
@r{a number, starting from 1.}
%? @r{After completing the template, position cursor here.}
@end smallexample
diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index f88573f..ced8399 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -269,7 +269,7 @@ be replaced with content and expanded:
A default value and a completion table ca be specified like this:
%^{prompt|default|completion2|completion3|...}.
%? After completing the template, position cursor here.
- %\\N Insert the text entered at the nth %^{prompt}, where N
+ %\\1 ... %\\N Insert the text entered at the nth %^{prompt}, where N
is a number, starting from 1.
Apart from these general escapes, you can access information specific to