all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] Tiny correction on documentation (org-capture template expansion)
@ 2015-04-11 10:15 François Allisson
  2015-04-11 11:48 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: François Allisson @ 2015-04-11 10:15 UTC (permalink / raw)
  To: Org mode

[-- 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Tiny correction on documentation (org-capture template expansion)
  2015-04-11 10:15 [PATCH] Tiny correction on documentation (org-capture template expansion) François Allisson
@ 2015-04-11 11:48 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2015-04-11 11:48 UTC (permalink / raw)
  To: François Allisson; +Cc: Org mode

Hello,

François Allisson <francois.allisson@unil.ch> writes:

> 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,

Applied. Thank you.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-11 11:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-11 10:15 [PATCH] Tiny correction on documentation (org-capture template expansion) François Allisson
2015-04-11 11:48 ` Nicolas Goaziou

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.