Macro + diversion issue

2007-05-19 Thread Daniel Richard G.
Hello, I've been messing around with diversions inside macros, and have come upon an odd scenario. I'd like to call it a bug, but I get the same behavior from m4 1.4 as from 1.9a. See the attached m4 input file. You have div10(), a macro which sends its argument to diversion 10, and foo(), a t

Re: Macro + diversion issue

2007-05-19 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Daniel Richard G. on 5/19/2007 7:00 PM: > Hello, > > I've been messing around with diversions inside macros, and have come upon > an odd scenario. I'd like to call it a bug, but I get the same behavior > from m4 1.4 as from 1.9a. Not a

Re: Macro + diversion issue

2007-05-19 Thread Daniel Richard G.
On Sat, 2007 May 19 21:21:31 -0600, Eric Blake wrote: > > When m4 gets to the point marked by ^, it notices a macro, and expands it > to text as it continues to collect the arguments of foo, resulting in: > [...] > that is, you both swapped to and back from diversion 10, all while > collecting the