[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
m4 changequote problem
From: |
Mauri Järvinen |
Subject: |
m4 changequote problem |
Date: |
Tue, 22 Jul 2003 18:26:40 +0300 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3 |
Hi
I would like to change the m4 quote characters to ``' and `´'.
The changequote info page says:
The default quote delimiters can be changed with the builtin
`changequote':
changequote(opt START, opt END)
where START is the new start-quote delimiter and END is the new
end-quote delimiter. If any of the arguments are missing, the default
quotes (``' and `'') are used instead of the void arguments.
So I figured that if I leave out the first argument, the default
opening quote (``') would be used instead of it:
changequote(, ´)dnl
define(`TestIt´, `$1´)dnl
TestIt(`no´)
=> TestIt(`no´)
changequote(, ´)dnl
define(TestIt, `$1´)dnl
TestIt(`no´)
=> ``no´´
Not what I expected.
So then I tried to accomplish it by trickery:
changequote([, ])dnl
changequote(`, ´)dnl
define(`TestIt´, `$1´)dnl
TestIt(`no´)
Now I get an error message:
NONE:0: m4: ERROR: EOF in string
The same thing happens when I replace the 3rd line in the above with:
define(TestIt, `$1´)dnl
I also tried:
changequote(`, ´)dnl
define(`TestIt´, `$1´)dnl
TestIt(`no´)
And the same error message ensues.
So, is there a way to accomplish what I'm trying to accomplish?
TIA
Mauri Järvinen
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- m4 changequote problem,
Mauri Järvinen <=