* Makefile.am (TESTSUITE_AT): Add missing tests/freeze.at.
[m4/ericb.git] / NEWS
blobc56bfd03164953f860b27e87de3ce906b2b00d2d
1 GNU m4 NEWS - History of user-visible changes.          -*- outline -*-
2 Copyright 1992, 1993, 1994, 1998, 2000, 2001, 2006 Free Software
3 Foundation, Inc.
5 Version beta 1.9a - ???, by ???
7 * If the POSIXLY_CORRECT environment variable is set, m4 now disables
8   GNU extensions that are incompatible with POSIX.
10 * POSIXLY_CORRECT and `m4 --traditional' now makes the `define' builtin
11   replace all `pushdef'ed values of a macro, as POSIX requires.
13 * The `defn' builtin now allows any number of arguments, as POSIX requires.
15 * The '$' syntax class is now enabled.  See the info docs for examples.
17 * New builtin `renamesyms' allows programmatic renaming of all symbols
18   according to a regular expression.
20 * New `-r' command-line option changes the default regular expression
21   syntax used by M4.  Without this option, M4 continues to use
22   RE_SYNTAX_EMACS style expressions.  A new section in the info docs
23   explains the differences between them, and what builtins are affected.
25 * The experimental `epatsubst' and `eregexp' have been removed in favor
26   of a new `changeresyntax' builtin.
28 * `patsubst' and `regexp' have a new optional 4th argument to use a
29   different regular expression syntax for the duration of that invocation.
31 Version beta 1.4q - August 2001, by Gary V. Vaughan
33 * Support for the experimental `changeword' has been dropped.
35 * `m4 --hashsize' and `-H' are still accepted, but have no effect.  M4
36   will grow its internal symbol table if the symbol density is having
37   an effect on performance.
39 * `configure --without-modules' will build an m4 binary with no preloaded
40   modules.  At startup it will search for and load modules `m4' and either
41   `gnu' or `traditional'.  This mode of operation can be used for
42   development and debugging of the base modules without the need to
43   recompile all of m4 with each modification.
45 * `configure --with-modules="gnu m4 traditional load"', for example,
46   will build an m4 binary with the named modules preloaded, ready to
47   be activated (even on static lib only machines) with the `-m' option
48   or using the `load' builtin.
50 * M4 has no builtins or macros in core, they are all loaded from modules
51   at startup.  This means that modules are no longer optional, though
52   the standard build will statically link the modules `m4', `gnu' and
53   `traditional', so even on machines with no ltdl support, all of the
54   functionality from previous releases is available.
56 * New builtin `load' to dynamically load modules which can define new
57   builtins and user macros.
59 * New builtin `unload' to remove loaded modules (and the builtins and user
60   macros they define) from the running m4 interpreter.
62 * New builtins `eregexp' and `epatsubst' to use Extended Regular Expressions
63   syntax in lieu of Basic Regular Expressions as used by `regexp' and
64   `patsubst'.
66 * The names of all currently loaded modules are returned by the new
67   builtin, ``modules''.
69 * Loadable modules can define new builtin functions or text expansion
70   macros.
72 * The module code has been rewritten to use libltdl, the libtool dynamic
73   loader, which means GNU m4 can now load (and unload) modules just about
74   anywhere which it can be built.  This includes obscure hosts such as
75   cygwin and BeOS, and also on hosts which do not have shared libraries,
76   through preloading (see libtool manual) and GNU dld.
78 * Modules can now be built without the m4 source being available using the
79   installed m4module.h header file (and some other headers that it includes
80   for you), and the installed libm4.la libtool library.  All symbols
81   exported from libm4.la have a prefix of `m4_' or `M4_'.  See the modules
82   directory for examples of usage.
84 * A new V2 format for frozen files that saves module and syntax information.
86 Version beta 1.4o - January 2000, by Rene' Seindal
88 * Modules can be loaded from the command line with --load-module
90 * Modules now use libtool's wrapper libltdl.
92 * Bug fixes.
94 Version beta 1.4n - November 1998, by Rene' Seindal
96 * The module code has been reorganised yet again, and now compiles
97   correctly on GNU/Linux, HPUX 9 and 10, SunOS 5 and Solaris 5.
99 * When configured --with-gmp a new builtin `mpeval' is now defined.  The
100   builtin `eval' retains its normal behaviour.
102 * m4 --version also shows which options were used for compilation, such as:
103   "GNU m4 1.4n (options: modules gmp changeword)"
105 * New option --import-environment defines all environment variables as
106   macros.  This is done before -D and -U are handled, so the macros can be
107   changed through these options.
109 * Error messages now always print program name before input file name as
110   specified by GNU coding standards.  Reported by Akim Demaille
111   <demaille@inf.enst.fr>.
113 * Bug fixed: "undivert(0)" could cause m4 to read standard output.  A call
114   of "undivert(0)" is now silently ignored.
116 * Bug fixed: when compiling --with-included-gettext, <libintl.h> wasn't
117   found in intl/ directory.  Reported by Andrew Bettison
118   <andrewb@zip.com.au>.
120 Version beta 1.4m - November 1998, by Rene' Seindal
122 * Using libtool for compiling modules and for linking main app.
124 * Reorganised the dynamic module code to encapsulate system dependencies
125   better.  The code for HPUX shl_load() still needs testing and debugging.
126   A dld interface is also missing.  Any volunteers?
128 * The files from the GNU m4 web-site is now in examples/WWW as a more
129   complete example of what GNU m4 can do.
131 Version beta 1.4l - November 1998, by Rene' Seindal
133 * GNU m4 now has an escape syntax category.  If a character is marked as
134   an escape, words are only recognised as macros if preceded by an escape
135   character.  It is a bit like -P, but dynamic: it can be turned on and
136   off.  The GNU m4 web-site on http://www.seindal.dk/rene/gnu/ is
137   maintained with this feature - the m4 source is available on the site.
139 * The module interface is improved, thanks to "Brian J. Fox"
140   <bfox@datawave.net>, who have contributed some code from Meta-HTML.  The
141   modules now build automatically and installs properly, by default in
142   /usr/local/libexec/m4.  There is a preliminary, untested support for
143   shl_load().
145 * There is now a __m4_version__ macro that expands to the current version
146   number.
148 Version beta 1.4k - November 1998, by Erick Branderhorst and Rene' Seindal
150 * GNU m4 now uses gettext to support internationalization.
152 * GNU m4 now uses automake to control Makefile.in generation.  This
153   should make it more consistent with the GNU standards.
155 * GNU m4 will use the gmp library for multiple precision integral and
156   rational arithmetic in `eval' if configured with `--with-gmp'.  If
157   configured without `--with-gmp' or if gmp is not available, and the type
158   `long long int' is, GNU m4 will use that for `eval' arithmetic.
160 * GNU m4 now parses the input according to a syntax table, that can be
161   modified through the new builtin `changesyntax'.  It is a generalisation
162   of the existing builtins `changecom' and `changequote'.  The changes are
163   completely backwards compatible (except for the existence of
164   `changesyntax').
166 * Sync lines can be turned on and off with the `syncoutput' builtin.  The
167   builtin `syncoutput' is a GNU extension.
169 * New experimental feature: dynamically loadable modules.  New builtin
170   `loadmodules' loads shared libraries, that can define new builtin
171   macros, ie, new macros can be written in C.  Depends on the dlopen()
172   interface, and is currently only tested on Linux.  Enabled at configure
173   time with `--with-modules'.  Documentation is in src/module.c and
174   module/README.
176 * Implement a GNU message catalog for French (Franc,ois Pinard).
178 * Filenames found through path searches are now correctly reflected in
179   error and debug messages and through the `__file__' macro.
181 Bugs fixed
183 * All 8-bit characters can now be used for quotes.
186 Version 1.4 - October 1994, by Franc,ois Pinard
188 (No user visible changes)
191 Version 1.3 - September 1994, by Franc,ois Pinard
193 * Diversions are created as needed.  Option `-N' is still accepted, but
194 otherwise ignored.  Users should use only negative diversion numbers,
195 instead of high positive numbers, for diverting to nowhere.
197 * Diversions should also work faster.  No temporary files will be needed
198 at all if all diversions taken altogether do not use more than 512K.
200 * Frozen state files may be produced with the `--freeze-state' (-F)
201 option and later brought back through the `--reload-state' (-R) option.
204 Version 1.2 - July 1994, by Franc,ois Pinard
206 * In patsubst(STRING, REGEXP, REPLACEMENT), \& in REPLACEMENT has been
207 changed to represent this part of STRING matched by the whole REGEXP,
208 instead of the whole STRING as before.  \0 does the same, but emits a
209 diagnostic saying it will disappear in some subsequent release.
211 * eval(EXPR) emits a diagnostic if EXPR has suffixed crumb.  The same for
212 other numeric conversions in incr(), decr(), divert(), etc.
214 * `--fatal-warnings' (-E) stops execution at first warning.
216 * `--nesting-limit=LEVEL' (-L LEVEL) sets a limit to macro nesting.
217 It is initially fixed at 250.
219 * `--word-regexp=REGEXP' (-W REGEXP) modifies macro name syntax, like
220 does the new `changeword(REGEXP)' macro.  This feature is experimental,
221 tell me your opinions about it.  You do need --enable-changeword at
222 configure time to get these things.  Do *not* depend on them yet.
224 * Trace output format is scannable by GNU Emacs' next-error function.
226 * Stack overflow is detected and diagnosed on some capable systems.
228 * Various bugs have been corrected, m4 should be more portable.  See the
229 ChangeLog for details.
232 Version 1.1 - November 1993, by Franc,ois Pinard
234 Changes which might affect existing GNU m4 scripts:
236 * Option `-V' has been removed, use `--version' instead.  `--version'
237 writes on standard output instead of standard error, and inhibits any
238 script execution.
240 * `--no-gnu-extensions' has been renamed `--traditional'.
242 * In `eval', `^' used to indicate exponentiation, use `**' instead.
244 * The automatic undiversion which takes place at end of all input is
245 forced into the main output stream.
247 Changes which are unlikely to affect existing scripts:
249 * `--help' prints an usage summary on standard output.  Script execution
250 is then inhibited.
252 * `--prefix-builtins' (-P) prefixes all builtin macros by `m4_'.
254 * Most builtin macros for which arguments are mandatory, called without
255 any arguments, are no more recognized as builtin macros: they are
256 consequently copied verbatim to the output stream.
258 * `define' and `pushdef' are usable with only one argument, they give
259 this argument an empty definition.
261 * `eval' new operators for binary representation handling: `^' for
262 exclusive-or, `~' for the bitwise negation, `<<' and `>>' for shifts.
264 * `eval' recognizes the notation 0bDIGITS for binary numbers and the
265 notation 0rRADIX:DIGITS for numbers in any radix from 1 to 36.
267 Version 1.0.3 - December 1992, by Franc,ois Pinard
269 Changes for the user:
271 * `dnl' outputs a diagnostic if immediately followed by `('.  Usually,
272 `dnl' is followed by newline or whitespace.
274 * `ifelse' accepts without complaining the common idiom of having only
275 one argument.  This is useful for introducing long comments.
277 * `eval' always expresses values as signed, whatever the radix.
279 * M4OPTS environment variable is no longer obeyed.
281 * `--no-warnings' option is renamed `--silent'.
283 * Debug lines use a new format more compatible with GNU standards.
285 * Various bugs have been corrected.  See the ChangeLog for details.
287 Changes for the installer:
289 * GNU m4 now uses an Autoconf-generated configure script, and should be
290 more easily portable in many ways.  (Cray is not supported yet).
292 * `make check' has been made more portable, expect no errors.
294 Changes for the programmer:
296 * Sources have been fully reindented to comply with GNU standards, and
297 cleaned up in many ways.
299 * Sources have been protoized.  Non-ANSI compilers are automatically
300 detected, then sources are unprotoized on the fly before compilation.
302 * GNU m4 uses newer versions of obstack, regex, getopt, etc.
304 Version 1.0 - October 1991, by Rene' Seindal
306 * Uses GNU configure, taken from the gdb distribution.
308 * Uses GNU getopt(), with long option names.
310 * The -Q/+quiet option is added, which suppresses warnings about missing
311 or superflous arguments to builtin macros.
313 * Added default options via the M4OPTS environment variable.
315 * Several minor bugs have been fixed.
317 Version 0.99 - July 1991, by Rene' Seindal
319 * The builtins `incr' and `decr' are now implemented without use of
320 `eval'.
322 * The builtin `indir' is added, to allow for indirect macro calls
323 (allows use of "illegal" macro names).
325 * The debugging and tracing facilities has been enhanced considerably.
326 See the manual for details.
328 * The -tMACRO option is added, marks MACRO for tracing as soon as it
329 is defined.
331 * Builtins are traced after renaming iff they were before.
333 * Named files can now be undiverted.
335 * The -Nnum option can be used to increase the number of divertions
336 available.
338 * Calling changecom without arguments now disables all comment handling.
340 * A bug in `dnl' is fixed.
342 * A bug in the multi-character quoting code is fixed.
344 * Several typos in the manual has been corrected.  More probably persist.
346 Version 0.75 - November 1990, by Rene' Seindal
348 * Implemented search path for include files (-I option and M4PATH
349 environment variable).
351 * Implemented builtin `format' for printf-like formatting.
353 * Implemented builtin `regexp' for searching for regular expressions.
355 * Implemented builtin `patsubst' for substitution with regular
356 expressions.
358 * Implemented builtin `esyscmd', which expands to a shell commands output.
360 * Implemented `__file__' and `__line__' for use in error messages.
362 * Implemented character ranges in `translit'.
364 * Implemented control over debugging output.
366 * Implemented multi-character quotes.
368 * Implemented multi-character comment delimiters.
370 * Changed predefined macro `gnu' to `__gnu__'.
372 * Changed predefined macro `unix' to `__unix__', when the -G option is
373 not used.  With -G, `unix' is still defined.
375 * Added program name to error messages.
377 * Fixed two missing null bytes bugs.
379 Version 0.50 - January 1990, by Rene' Seindal
381 * Initial beta release.
383 Local Variables:
384 fill-column: 75
385 End: