m4-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RFC: rename symbols to m4symbols


From: Eric Blake
Subject: RFC: rename symbols to m4symbols
Date: Mon, 18 Sep 2006 07:09:50 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

"symbols" is an English word, but was added to m4-1.4o as a macro that
takes 0 arguments (even worse, the 1.4o manual documented the new macro,
but NEWS did not).  This has the potential to break preprocessing of
English text that used to work with m4 1.4.x, when someone upgrades and
makes no changes to their command line.  I propose renaming the macro to
"m4symbols" (and we should probably document a policy that any future
macro added in the gnu module that take 0 arguments either be in the "m4"
or "__" namespace, such as the __program__ macro added in m4 1.4.6).
m4sugar currently handles this case by mapping symbols to "m4_symbols",
consistent with the other remappings it handles, so a rename visible in m4
2.0 would slightly impact autoconf; there are other macros that m4sugar
still needs to pick up from CVS M4, such as changeresyntax.

Also, is it worth putting the macros in the load module in a proper
namespace?  "modules", "load", and "unload" are all English words, but at
least with CVS m4, you have to explicitly request "-m load" at the command
line to enable them.

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFFDpqe84KuGfSFAYARAltJAKDJ5FSybI0dcDaXjtMSQe1ozVIt2gCWIdxe
Z/cK8e1tAhOqk2302Zs7HA==
=n+5g
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]