Re: m4-discuss Digest, Vol 137, Issue 1
Ice Ninja <[email protected]> Sun, 23 Jun 2024 12:42:24 -0400
| Newsgroups | gmane.comp.gnu.m4.general |
|---|---|
| Message-ID | <CADs++auKX+vhKhJ+TnWqsCWyvx3onGsYMj+NpSRKsn_B1iVWBQ@mail.gmail.com> |
--0000000000000ad87f061b915a41 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable divert wont work at arguments - they are ignored. Now I don't use divert anymore. A good replacement is autoconf's sugar.m4's m4_expand or alike which can do much better. On Fri, Jun 21, 2024 at 12:02=E2=80=AFPM <[email protected]> wrote= : > Send m4-discuss mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.gnu.org/mailman/listinfo/m4-discuss > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of m4-discuss digest..." > > > Today's Topics: > > 1. diversion while collecting arguments (Ren=C3=A9 Nyffenegger) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 20 Jun 2024 18:00:02 +0200 > From: Ren=C3=A9 Nyffenegger <[email protected]> > To: [email protected] > Subject: diversion while collecting arguments > Message-ID: <[email protected]> > Content-Type: text/plain; charset=3DUTF-8; format=3Dflowed > > I have a file with the following content: > > define(show_arguments, `arg-1 =3D $1 > arg-2 =3D $2 > ') > > divert(1)A`'divert(0)a > > show_arguments( > divert(1)X`'divert(0)1st, > divert(1)Y`'divert(0)2nd) > > divert(1)B`'divert(0)b > > - - - - - > > m4 processes this file to: > > a > > arg-1 =3D X1st > arg-2 =3D Y2nd > > > b > AB > > - - - - - - > > I expected the > divert(1)X`'divert(0) > and > divert(1)Y`'divert(0)2nd) > > to divert the X and Y so that it is emitted at the end. > > Can someone explain why this is not the case? > > Thanks > > Rene > > > > > End of m4-discuss Digest, Vol 137, Issue 1 > ****************************************** > --0000000000000ad87f061b915a41 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">divert wont work at arguments - they are ignored. Now I do= n't use divert anymore. A good replacement is autoconf's=C2=A0sugar= .m4's m4_expand or alike which can do much=C2=A0better.</div><br><div c= lass=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, Jun 21, = 2024 at 12:02=E2=80=AFPM <<a href=3D"mailto:[email protected]">= [email protected]</a>> wrote:<br></div><blockquote class=3D"gma= il_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,2= 04,204);padding-left:1ex">Send m4-discuss mailing list submissions to<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"mailto:[email protected]" target=3D= "_blank">[email protected]</a><br> <br> To subscribe or unsubscribe via the World Wide Web, visit<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"https://lists.gnu.org/mailman/listin= fo/m4-discuss" rel=3D"noreferrer" target=3D"_blank">https://lists.gnu.org/m= ailman/listinfo/m4-discuss</a><br> or, via email, send a message with subject or body 'help' to<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"mailto:[email protected]" t= arget=3D"_blank">[email protected]</a><br> <br> You can reach the person managing the list at<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"mailto:[email protected]" tar= get=3D"_blank">[email protected]</a><br> <br> When replying, please edit your Subject line so it is more specific<br> than "Re: Contents of m4-discuss digest..."<br> <br> <br> Today's Topics:<br> <br> =C2=A0 =C2=A01. diversion while collecting arguments (Ren=C3=A9 Nyffenegger= )<br> <br> <br> ----------------------------------------------------------------------<br> <br> Message: 1<br> Date: Thu, 20 Jun 2024 18:00:02 +0200<br> From: Ren=C3=A9 Nyffenegger <<a href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a>><br> To: <a href=3D"mailto:[email protected]" target=3D"_blank">m4-discuss@gnu.= org</a><br> Subject: diversion while collecting arguments<br> Message-ID: <<a href=3D"mailto:a1db89dd-35db-4597-b39c-1dccc3837890@rene= nyffenegger.ch" target=3D"_blank">a1db89dd-35db-4597-b39c-1dccc3837890@rene= nyffenegger.ch</a>><br> Content-Type: text/plain; charset=3DUTF-8; format=3Dflowed<br> <br> I have a file with the following content:<br> <br> define(show_arguments, `arg-1 =3D $1<br> arg-2 =3D $2<br> ')<br> <br> divert(1)A`'divert(0)a<br> <br> show_arguments(<br> =C2=A0=C2=A0 divert(1)X`'divert(0)1st,<br> =C2=A0=C2=A0 divert(1)Y`'divert(0)2nd)<br> <br> divert(1)B`'divert(0)b<br> <br> - - - - -<br> <br> m4 processes this file to:<br> <br> a<br> <br> arg-1 =3D X1st<br> arg-2 =3D Y2nd<br> <br> <br> b<br> AB<br> <br> - - - - - -<br> <br> I expected the<br> =C2=A0=C2=A0=C2=A0=C2=A0 divert(1)X`'divert(0)<br> and<br> =C2=A0=C2=A0=C2=A0=C2=A0 divert(1)Y`'divert(0)2nd)<br> <br> to divert the X and Y so that it is emitted at the end.<br> <br> Can someone explain why this is not the case?<br> <br> Thanks<br> <br> Rene<br> <br> <br> <br> <br> End of m4-discuss Digest, Vol 137, Issue 1<br> ******************************************<br> </blockquote></div> --0000000000000ad87f061b915a41--