From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Baum Subject: Re: Problem with template expansion of previous prompts. Date: Fri, 7 Dec 2012 15:18:36 -0500 Message-ID: References: <877gouu54n.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae93a168fa0ae9304d048eb8f Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Th4Na-0003Uz-8F for emacs-orgmode@gnu.org; Fri, 07 Dec 2012 15:18:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Th4NZ-0007fW-4l for emacs-orgmode@gnu.org; Fri, 07 Dec 2012 15:18:38 -0500 Received: from mail-ob0-f169.google.com ([209.85.214.169]:45949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Th4NY-0007fQ-Vo for emacs-orgmode@gnu.org; Fri, 07 Dec 2012 15:18:37 -0500 Received: by mail-ob0-f169.google.com with SMTP id v19so491965obq.0 for ; Fri, 07 Dec 2012 12:18:36 -0800 (PST) In-Reply-To: <877gouu54n.fsf@gmail.com> 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 , aaronecay@gmail.com --14dae93a168fa0ae9304d048eb8f Content-Type: text/plain; charset=ISO-8859-1 Yes, you're correct, Aaron, thanks. Apparently the secondary substitutions only get processed after all the questions are asked and the template is written out to the temp buffer. So the backslash has to be escaped to survive the first round of substitutions. I kind of feel that this should be stated more explicitly in the manual. IN BOLD TYPE. maabaum On Thu, Dec 6, 2012 at 6:34 PM, Aaron Ecay wrote: > You need to escape the backslash inside the string, I think. "\1" is > interpreted as a string consisting of one character, the ASCII character > with hex code 0x01, which happens to be C-a. "\\1" is a 2-character > string: backslash, then one. > > -- > Aaron Ecay > -- ==================================== Michael Baum You should never have your best trousers on when you go out to fight for freedom and truth. - Ibsen --14dae93a168fa0ae9304d048eb8f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yes, you're correct, Aaron, thanks. Apparently the secondary substituti= ons only get processed after all the questions are asked and the template i= s written out to the temp buffer. So the backslash has to be escaped to sur= vive the first round of substitutions.

I kind of feel that this should be stated more explicitly in the manual= . IN BOLD TYPE.

maabaum

On Thu, De= c 6, 2012 at 6:34 PM, Aaron Ecay <aaronecay@gmail.com> wro= te:
You need to escape the backslash inside the = string, I think. =A0"\1" is
interpreted as a string consisting of one character, the ASCII character with hex code 0x01, which happens to be C-a. =A0"\\1" is a 2-char= acter
string: backslash, then one.

--
Aaron Ecay



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

You should never have your best tro= users on when you go out
=A0to fight for freedom and truth. - Ibsen
--14dae93a168fa0ae9304d048eb8f--