emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Problem with template expansion of previous prompts.


From: Michael Baum
Subject: [O] Problem with template expansion of previous prompts.
Date: Thu, 6 Dec 2012 10:52:48 -0500


This syntax in capture templates does not seem to be working for me, and I can't figure out why:

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

I'm using it like this:

------------------------8<----------------------------
("a" "Addressbook templates")
("af" "Addressbook - family" entry (file+headline org-addressbook-file "Family")
"* %^{First name} %^{Middle name} %^{Last name}
:PROPERTIES:
:FIRSTNAME: %\1
:MIDDLENAME: %\2
:LASTNAME: %\3
:ADDRESS-H: %^{Home address}
:HOMEPHONE: %^{Home phone}
usw.
------------------------8<----------------------------

But instead of the template filling in the second reference with the values entered for, eg., {First name}, I get, (also eg.) %^A (and the ^A is highlighted, maybe a control character?)

Has this syntax maybe changed in a way not reflected in the manual?

Using org-mode 7.9.2 on GNU Emacs 24.2.1 (x86_64-suse-linux-gnu, GTK+ Version 3.4.4)
 of 2012-10-10 on build20.

maab

--
====================================
Michael Baum <address@hidden>

You should never have your best trousers on when you go out
 to fight for freedom and truth. - Ibsen

reply via email to

[Prev in Thread] Current Thread [Next in Thread]