Re: macros defined w/different quotes than m4sugar.m4; want to use m4sugar.m4 macros

Eric Blake <[email protected]>
Newsgroups gmane.comp.gnu.m4.general
Organization Red Hat, Inc.
Message-ID <[email protected]>
On 11/05/2013 09:17 AM, [email protected] wrote:
> I created and use a set of shell script "code snip" macros that depend on:
> 
>   m4_changequote(`[<{', `}>]')
> 
> How might I include and use m4sugar.m4 macros without editing the quote chars in m4sugar.m4?

Alas, m4 doesn't provide a push/pop stack of quotes, and m4sugar.m4 is
quite hard-coded to exactly [] as the quoting characters.  I'm afraid
you'll have to do manual translation of the macros that interest you
into your preferred quoting style.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc (application/pgp-signature, 621 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEbBAEBCAAGBQJSeSKlAAoJEKeha0olJ0Nqsd8H+JOoNp38UZX4ASJUZ2bx3S6J
MW0gYeEnbsmgpiUeJUXWRGzj2j1VK770gCfmzMuk/TOVOL5hio/5e7akXDLDHXpl
w61UKqLE9uDs2exAVy49x3ebH3X0FAQ/4zQeO8+2Mqiz6zT0TnNfzvs8q4vLsLl5
dLQjdq9E/Cy2futmOceMa4t7Wb1tggSE7ggMkGubved+MZIYJiNyOl8foefpFSnd
x8046vlgWV60WBCsBwLWySXo1bC4K1LeVpk/DbR4vssnqDy/Ia942hvbLFC3Jdi/
DN0HxaKGQVC57NlGIXttlFzBCijWl5VksemYb2YGHASLYOBeBJQeVUn+02/a/w==
=+puT
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.