From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Baum Subject: Problem with template expansion of previous prompts. Date: Thu, 6 Dec 2012 10:52:48 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8fb2024838fbbf04d0311759 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tgdkp-0004Eq-BF for emacs-orgmode@gnu.org; Thu, 06 Dec 2012 10:53:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tgdkn-0000al-Sm for emacs-orgmode@gnu.org; Thu, 06 Dec 2012 10:52:51 -0500 Received: from mail-ob0-f169.google.com ([209.85.214.169]:61493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tgdkn-0000ae-NG for emacs-orgmode@gnu.org; Thu, 06 Dec 2012 10:52:49 -0500 Received: by mail-ob0-f169.google.com with SMTP id lz20so7258251obb.0 for ; Thu, 06 Dec 2012 07:52:48 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --e89a8fb2024838fbbf04d0311759 Content-Type: text/plain; charset=ISO-8859-1 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 You should never have your best trousers on when you go out to fight for freedom and truth. - Ibsen --e89a8fb2024838fbbf04d0311759 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
This syntax in capture templates does not seem to be working for me, an= d I can't figure out why:

------------------------8<---------= -------------------
%\n=A0=A0=A0=A0=A0=A0=A0=A0 Insert the text entered = at the nth %^{prompt}, where n is
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 a number, starting from 1.
------------------------8<----------------------------
I'm using it like this:

------------------------8<---------= -------------------
("a" "Addressbook templates") ("af" "Addressbook - family" entry (file+headline org-a= ddressbook-file "Family")
"* %^{First name} %^{Middle nam= e} %^{Last name}
:PROPERTIES:
:FIRSTNAME: %\1
:MIDDLENAME: %\2 :LASTNAME: %\3
:ADDRESS-H: %^{Home address}
:HOMEPHONE: %^{Home phone= }
usw.
------------------------8<----------------------------
<= br>But instead of the template filling in the second reference with the val= ues entered for, eg., {First name}, I get, (also eg.) %^A (and the ^A is hi= ghlighted, 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+ V= ersion 3.4.4)
=A0of 2012-10-10 on build20.

maab

--
=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Michael Baum <maa= baum@gmail.com>

You should never have your best trousers on when you go out
=A0to fi= ght for freedom and truth. - Ibsen
--e89a8fb2024838fbbf04d0311759--