diff options
| author | Paul Eggert | 2016-02-21 13:25:24 -0800 |
|---|---|---|
| committer | Paul Eggert | 2016-02-21 13:27:40 -0800 |
| commit | 1f7feecaee0ed3fb79758fe60020aefb30d9ff01 (patch) | |
| tree | b0476096aabea32658be041242caa74e7a5232cd /etc | |
| parent | 3e67708d7239cde24b0988d4d1288bc75585cfea (diff) | |
| download | emacs-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/NEWS | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -1726,7 +1726,7 @@ systems and for MS-Windows, for other systems they fall back to their | |||
| 1726 | counterparts `string-lessp' and `string-equal'. | 1726 | counterparts `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 |
| 1730 | interpreting consecutive runs of numerical characters as numbers, and | 1730 | interpreting consecutive runs of numerical characters as numbers, and |
| 1731 | compares their numerical values. According to this predicate, | 1731 | compares their numerical values. According to this predicate, |
| 1732 | "foo2.png" is smaller than "foo12.png". | 1732 | "foo2.png" is smaller than "foo12.png". |