aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPaul Eggert2016-02-21 13:25:24 -0800
committerPaul Eggert2016-02-21 13:27:40 -0800
commit1f7feecaee0ed3fb79758fe60020aefb30d9ff01 (patch)
treeb0476096aabea32658be041242caa74e7a5232cd /etc
parent3e67708d7239cde24b0988d4d1288bc75585cfea (diff)
downloademacs-1f7feecaee0ed3fb79758fe60020aefb30d9ff01.tar.gz
emacs-1f7feecaee0ed3fb79758fe60020aefb30d9ff01.zip
Use Gnulib filevercmp for version comparison
* admin/merge-gnulib (GNULIB_MODULES): Add filevercmp. * doc/lispref/strings.texi (Text Comparison): * etc/NEWS, src/fns.c: * test/src/fns-tests.el (fns-tests-string-version-lessp): Rename newly-introduced function to string-version-lessp, by analogy with strverscmp. * lib/filevercmp.c, lib/filevercmp.h: New files, copied from gnulib. * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate. * src/fns.c: Include <filevercmp.h>. (gather_number_from_string): Remove. (Fstring_version_lessp): Reimplement via filevercmp.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/NEWS b/etc/NEWS
index bad95191884..9a3799a62a0 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1726,7 +1726,7 @@ systems and for MS-Windows, for other systems they fall back to their
1726counterparts `string-lessp' and `string-equal'. 1726counterparts `string-lessp' and `string-equal'.
1727 1727
1728+++ 1728+++
1729** The new function `string-numeric-lessp' compares strings by 1729** The new function `string-version-lessp' compares strings by
1730interpreting consecutive runs of numerical characters as numbers, and 1730interpreting consecutive runs of numerical characters as numbers, and
1731compares their numerical values. According to this predicate, 1731compares their numerical values. According to this predicate,
1732"foo2.png" is smaller than "foo12.png". 1732"foo2.png" is smaller than "foo12.png".