On Wed, Mar 01, 2000 at 07:41:58PM +0100, Akim Demaille wrote:
: >>>>> "Lars" == Lars J Aas <[EMAIL PROTECTED]> writes:
: Lars> Even
: 
: Lars> define([m4_noquote],
: Lars> [changequote(-=<[{(,)}]>=-)$1-=<[{()}]>=-changequote([,])])
: 
: Lars> would do the trick ;)
: 
: I would say it wouldn't, since you have embedded [] in there, which
: are the current quotes, there will be just one big arg to changequote:
: -=<{(,)}>=-

You're right, of course.  What I ment was that we can avoid the first
changequote(,), assuming we know what the quotes are in advance, and
since we set the quotes to [] afterwards we can safely assume they
are [] beforehand (or the client's use of the macro wouldn't make that
much sense IMO).

This then:
[changequote(-=<{(,)}>=-)$1-=<{()}>=-changequote([,])])

It would be nice to have a couple of m4 push/popquote macros...

  Lars J

Reply via email to