On Fri, Mar 03, 2000 at 09:58:25AM +0100, Akim Demaille wrote:
: >>>>> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes:
: 
: Alexandre> On Mar 2, 2000, "Lars J. Aas" <[EMAIL PROTECTED]> wrote:
: >> define([m4_noquote],
: >> [changequote(-=<{,}>=-)$1-=<{}>=-changequote([,])])
: 
: Alexandre> I must say that I find this extremely ugly (but then,
: Alexandre> probably so does anybody else, and that's the point).
: 
: Well, we agree it looks more like a joke than something else.  {{ }}
: would have been fine too.

Agreed.  Since beauty is a goal in itself, apply such a change.  I'm most
interested in being able to circumvent the quoting hell caused by []
bracket conventions in strings and regexps, not the details of how it's
done.

: | define([m4_noquote],[m4_remove_trailing_newline([changequote(,)$1
: | changequote([,])])])

m4_chop() as an old perl-programmer would call it (except that chop()
does inplace variable-chopping and returns the chopped character).
Too bad it wasn't that easy.

  Lars J

Reply via email to