diff options
author | Allen Li <darkfeline@felesatra.moe> | 2018-12-07 19:35:56 -0800 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2018-12-09 23:34:20 +0100 |
commit | 601f373e3fd1874bb2603ffe608de550e2177877 (patch) | |
tree | 007a315e3232fc34f17579289761908fd4b9d9d2 | |
parent | 2f001510203e4124429626b4343282e22ba7d20f (diff) | |
download | org-mode-601f373e3fd1874bb2603ffe608de550e2177877.tar.gz |
Document %i prefix in capture templates
* doc/org-manual.org (Template expansion): Fix documentation.
* lisp/org-capture.el (org-capture-templates): Fix docstring.
-rw-r--r-- | doc/org-manual.org | 5 | ||||
-rw-r--r-- | lisp/org-capture.el | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/doc/org-manual.org b/doc/org-manual.org index 488f3ee..54bbf2a 100644 --- a/doc/org-manual.org +++ b/doc/org-manual.org @@ -7390,8 +7390,9 @@ here: - =%i= :: Initial content, the region when capture is called while the - region is active. The entire text will be indented like ~%i~ - itself. + region is active. If there is text before =%i= on the same line, + such as indentation, and =%i= is not inside a =%(exp)= form, that + prefix is added before every line in the inserted text. - =%a= :: diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 0446594..2946b6f 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -287,8 +287,10 @@ be replaced with content and expanded: with `org-capture-use-agenda-date' set. %T Time stamp as above, with date and time. %u, %U Like the above, but inactive time stamps. - %i Initial content, copied from the active region. If %i is - indented, the entire inserted text will be indented as well. + %i Initial content, copied from the active region. If + there is text before %i on the same line, such as + indentation, and %i is not inside a %(sexp), that prefix + will be added before every line in the inserted text. %a Annotation, normally the link created with `org-store-link'. %A Like %a, but prompt for the description part. %l Like %a, but only insert the literal link. |