Re: [O] Problem with template expansion of previous prompts.
Hi Michael, Michael Baum maab...@gmail.com writes: 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. Can you suggest something more precise? Or send a patch? We will not use uppercase warnings, but we may try to be more explicit. Thanks, -- Bastien
Re: [O] Problem with template expansion of previous prompts.
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 aarone...@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 maab...@gmail.com You should never have your best trousers on when you go out to fight for freedom and truth. - Ibsen
Re: [O] Problem with template expansion of previous prompts.
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