emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "François Allisson" <francois.allisson@unil.ch>
To: Org mode <emacs-orgmode@gnu.org>
Subject: [PATCH] Tiny correction on documentation (org-capture template expansion)
Date: Sat, 11 Apr 2015 12:15:03 +0200	[thread overview]
Message-ID: <87y4lzc6ej.fsf@unil.ch> (raw)

[-- Attachment #1: Type: text/plain, Size: 542 bytes --]

Hi all,

I couldn't make use of one of the template expansion, and I found that
a backslash was missing in the documentation, and now everything works
as expected. This:

     %\n         Insert the text entered at the nth %^{prompt}, where n is
                 a number, starting from 1.

should read like this

     %\\n        Insert the text entered at the nth %^{prompt}, where n is
                 a number, starting from 1.

I attached a patch,

Many thanks to all who contribute to this best software in the world,

Best,
François

[-- Attachment #2: 0001-Fix-documentation-for-org-capture-template-expansion.patch --]
[-- Type: text/x-diff, Size: 1073 bytes --]

From 01dd431a07f1e236163696924acb93996e23fa2b Mon Sep 17 00:00:00 2001
From: François Allisson <francois@allisson.co>
Date: Sat, 11 Apr 2015 12:05:33 +0200
Subject: [PATCH] Fix documentation for org-capture template expansion

* doc/org.texi

TINYCHANGE
---
 doc/org.texi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/org.texi b/doc/org.texi
index dfc25dc..c400f77 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -7282,7 +7282,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}
+%\\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
-- 
2.1.4


             reply	other threads:[~2015-04-11 10:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-11 10:15 François Allisson [this message]
2015-04-11 11:48 ` [PATCH] Tiny correction on documentation (org-capture template expansion) Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y4lzc6ej.fsf@unil.ch \
    --to=francois.allisson@unil.ch \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).