Re: BSD m4 (was: more m4 underquotations)

2007-02-16 Thread Eric Blake
> > I DO know that in the > > current source code of BSD m4, "changequote(,)" behaves > > like "changequote" (ie. sets the quotes to ` and ') rather than > > the GNU behavior of disabling quotes. > > This sounds like a POSIX [1] violation of BSD m4. Nope. It was at my request that the Austin gro

BSD m4 (was: more m4 underquotations)

2007-02-15 Thread Bruno Haible
Eric Blake wrote: > One more misfeature of changequote - changequote(,) is not > portable. The BSD folks have been trying to get their m4 > implementation to copy enough of GNU m4's traits that it > can be used in place of GNU M4 to support autoconf. But we don't need to care about that. We aren'

Re: more m4 underquotations

2007-02-15 Thread Bruno Haible
Eric Blake wrote: > there is too much risk that a user > will use those characters in his local encoding, but not the > byte sequence that M4 recognizes based on a different > encoding of those characters. Indeed. I thought this problem could be solved by having every file declare its quote charac

Re: more m4 underquotations

2007-02-14 Thread Eric Blake
> > If you prefer some other quoting style (e.g., maximal quoting or > > quadrigraphs, but rather not changequote) > > There is an important property that programming languages should have: > the ability to copy and paste a piece of code from one place to another. > > [[...]] doesn't have this pr

Re: more m4 underquotations

2007-02-14 Thread Eric Blake
> > The complexity stems from both the m4 language choice and > > the brevity of the chosen quote markers. The language issue > > is that macros inherit the quote markers from their invocation > > environment. Nothing you can do about that. (Too late to > > choose another language without starti

Re: more m4 underquotations

2007-02-14 Thread Bruno Haible
Bruce Korb wrote (in a discussion about how to avoid m4 underquotation bugs): > The complexity stems from both the m4 language choice and > the brevity of the chosen quote markers. The language issue > is that macros inherit the quote markers from their invocation > environment. Nothing you can d

Re: more m4 underquotations

2007-02-13 Thread Ralf Wildenhues
* Jim Meyering wrote on Tue, Feb 13, 2007 at 11:34:45PM CET: > Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > > > > OK to apply? > Please do apply them. Thanks, I did applied the unlink*.m4 changes. * Bruno Haible wrote on Wed, Feb 14, 2007 at 12:18:11AM CET: > > There is an important property th

Re: more m4 underquotations

2007-02-13 Thread Bruno Haible
Hello Ralf, Three bugs found by simple inspection! Wow! > 2007-02-13 Ralf Wildenhues <[EMAIL PROTECTED]> > > * m4/intdiv0.m4 (gt_INTDIV0): Fix m4 quoting bug. Thanks; I'm applying an equivalent patch. > If you prefer some other quoting style (e.g., maximal quoting or > quadrigraphs, bu

Re: more m4 underquotations

2007-02-13 Thread Bruce Korb
Ralf Wildenhues wrote: > And frankly, I don't know a good way to make things easier here. > changequote IMHO isn't one: as soon as you *know* where you would > have needed it, you can also just use another quoting style. The complexity stems from both the m4 language choice and the brevity of the

Re: more m4 underquotations

2007-02-13 Thread Jim Meyering
Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > Hello Bruno, Jim, Paul, all, > > I found a couple more underquotations. Here's a proposed quick patch. > If you prefer some other quoting style (e.g., maximal quoting or > quadrigraphs, but rather not changequote), I'd be happy to redo. > OK to apply?

Re: more m4 underquotations

2007-02-13 Thread Ralf Wildenhues
Hello Bruce, * Bruce Korb wrote on Tue, Feb 13, 2007 at 10:50:56PM CET: > Ralf Wildenhues wrote: > > -alpha* | i[34567]86 | m68k | s390*) > > +alpha* | i[[34567]]86 | m68k | s390*) > I figure that if it is this difficult to get it right, then > it is too difficult and it i

Re: more m4 underquotations

2007-02-13 Thread Bruce Korb
Ralf Wildenhues wrote: > Hello Bruno, Jim, Paul, all, > Index: m4/intdiv0.m4 > === > RCS file: /cvsroot/gnulib/gnulib/m4/intdiv0.m4,v > retrieving revision 1.4 > diff -u -r1.4 intdiv0.m4 > --- m4/intdiv0.m4 24 Feb 2005 20:12:45 -0

more m4 underquotations

2007-02-13 Thread Ralf Wildenhues
Hello Bruno, Jim, Paul, all, I found a couple more underquotations. Here's a proposed quick patch. If you prefer some other quoting style (e.g., maximal quoting or quadrigraphs, but rather not changequote), I'd be happy to redo. OK to apply? Cheers, Ralf 2007-02-13 Ralf Wildenhues <[EMAIL PRO