From: Michael Baum <maabaum@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>, aaronecay@gmail.com
Subject: Re: Problem with template expansion of previous prompts.
Date: Fri, 7 Dec 2012 15:18:36 -0500 [thread overview]
Message-ID: <CA+G3xFjHg4teUKU1K9wnA2RfV6H11pjhOUNG4y3ip0ZZ248Y4Q@mail.gmail.com> (raw)
In-Reply-To: <877gouu54n.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 881 bytes --]
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 <aaronecay@gmail.com> 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 <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: 1327 bytes --]
next prev parent reply other threads:[~2012-12-07 20:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-06 15:52 Problem with template expansion of previous prompts Michael Baum
2012-12-06 23:34 ` Aaron Ecay
2012-12-07 20:18 ` Michael Baum [this message]
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+G3xFjHg4teUKU1K9wnA2RfV6H11pjhOUNG4y3ip0ZZ248Y4Q@mail.gmail.com \
--to=maabaum@gmail.com \
--cc=aaronecay@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).