]> git.eshelyaron.com Git - emacs.git/commit
Improve parsing of version strings
authorAlex Dunn <dunn.alex@gmail.com>
Sat, 5 Dec 2015 09:32:01 +0000 (11:32 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 5 Dec 2015 09:32:01 +0000 (11:32 +0200)
commitd676e498255541a486c1d8a4cb30439bfb2ca385
tree7082cf1d7431466003e9ae0f4de0889b74815ecc
parentb3b68eb655595407f8b03e5500df081324e0cd40
Improve parsing of version strings

* lisp/subr.el (version-regexp-alist): Allow "." as priority separator
(version-to-list): More helpful error messages.
(version-to-list): ".5" is valid (update docstring).  Make
"22.8X3" invalid, as the doc string says.

* test/automated/subr-tests.el (ert-test-version-parsing): New
tests for version string processing.

Copyright-paperwork-exempt: yes
lisp/subr.el
test/automated/subr-tests.el