Re: Macro + diversion issue

2007-05-21 Thread Daniel Richard G.
In fact, it's a fairly simple patch. See attached for my stab at it. (Also, there's a more straightforward test input file.) I did the two-arg divert(), since that seems more natural than coming up with a new/separate builtin for this. I think this fills a hole in the core m4 feature set---righ

Re: Macro + diversion issue

2007-05-21 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Daniel Richard G. on 5/21/2007 1:43 AM: > In fact, it's a fairly simple patch. See attached for my stab at it. (Also, > there's a more straightforward test input file.) I did the two-arg > divert(), since that seems more natural than com

Re: Macro + diversion issue

2007-05-21 Thread Daniel Richard G.
On Mon, 2007 May 21 21:45:43 -0600, Eric Blake wrote: > > I'm debating if some other solution might also be helpful, such as a > builtin that adds an extra set of quotes only if it is called while > currently parsing the arguments to a macro. And it is also worth > considering the proposal for a