summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-01-06 22:03:27 -0700
committerEric Blake <ebb9@byu.net>2009-01-07 14:11:08 -0700
commitae9dfa87a514d290fe349710a9f643d52856f4ba (patch)
tree56561d37876dd6b774b9ce07e608c3df436a9093 /NEWS
parente6819ca240b76700f07c31ba157f7795caada02e (diff)
downloadm4-ae9dfa87a514d290fe349710a9f643d52856f4ba.tar.gz
Enhance substr to support negative values.
* doc/m4.texinfo (Substr): Document new semantics, and how to simulate old. * modules/m4.c (substr): Support negative values. * NEWS: Document this. Signed-off-by: Eric Blake <ebb9@byu.net> (cherry picked from commit e9e4abba45f7e9f368cf497e14bc2ce64b867a02)
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS9
1 files changed, 7 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index ca4e0b0b..b3396ff7 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,6 @@
GNU m4 NEWS - History of user-visible changes. -*- outline -*-
-Copyright (C) 1992, 1993, 1994, 1998, 2000, 2001, 2006, 2007, 2008 Free
-Software Foundation, Inc.
+Copyright (C) 1992, 1993, 1994, 1998, 2000, 2001, 2006, 2007, 2008, 2009
+Free Software Foundation, Inc.
* Noteworthy changes in Version 1.9b (200x-??-??) [beta]
Released by ????, based on git version 1.9a-*
@@ -242,6 +242,11 @@ promoted to 2.0.
the current expansion is nested within argument collection of another
macro. It has also been optimized for faster performance.
+** The `substr' builtin now treats negative arguments as indices relative
+ to the end of the string. The manual gives an
+ example of how to recover M4 1.4.x behavior, as well as an example of
+ simulating the new negative argument semantics with older M4.
+
** The `-d'/`--debug' command-line option now understands `-' and `+'
modifiers, the way the builtin `debugmode' has always done; this allows
`-d-V' to disable prior debug settings from the command line, similar to