|
@@ -248,7 +248,7 @@ be replaced with content and expanded in this order:
|
|
|
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> is
|
|
|
+ %\\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 the
|
|
@@ -1480,7 +1480,7 @@ The template may still contain \"%?\" for cursor positioning."
|
|
|
;; Replace %n escapes with nth %^{...} string
|
|
|
(setq strings (nreverse strings))
|
|
|
(goto-char (point-min))
|
|
|
- (while (re-search-forward "%\\([1-9][0-9]*\\)" nil t)
|
|
|
+ (while (re-search-forward "%\\\\\\([1-9][0-9]*\\)" nil t)
|
|
|
(unless (org-capture-escaped-%)
|
|
|
(replace-match
|
|
|
(nth (1- (string-to-number (match-string 1))) strings)
|