emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Baum <maabaum@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Problem with template expansion of previous prompts.
Date: Thu, 6 Dec 2012 10:52:48 -0500	[thread overview]
Message-ID: <CA+G3xFgz9OCRWhYcBEV7ie0x6aq0sj5bNFj3V=5Km0Cpqwgv_w@mail.gmail.com> (raw)

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

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 <maabaum@gmail.com>

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

[-- Attachment #2: Type: text/html, Size: 1569 bytes --]

             reply	other threads:[~2012-12-06 15:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-06 15:52 Michael Baum [this message]
2012-12-06 23:34 ` Problem with template expansion of previous prompts Aaron Ecay
2012-12-07 20:18   ` Michael Baum
2012-12-24  1:17     ` Bastien

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='CA+G3xFgz9OCRWhYcBEV7ie0x6aq0sj5bNFj3V=5Km0Cpqwgv_w@mail.gmail.com' \
    --to=maabaum@gmail.com \
    --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).