* Are floating point numbers ok in version-regexp-alist?
@ 2017-03-15 22:43 Clément Pit-Claudel
0 siblings, 0 replies; only message in thread
From: Clément Pit-Claudel @ 2017-03-15 22:43 UTC (permalink / raw)
To: Emacs developers
Hi emacs-devel,
I need to compare debian-like version numbers, in which 1.0 < 1.0dev < 1.1:
$ dpkg --compare-versions 1.0 lt 1.0dev; echo $?
0
$ dpkg --compare-versions 1.0dev lt 1.1; echo $?
0
My instinct would be to write this:
(let ((version-regexp-alist `(("dev" . 0.5) ,@version-regexp-alist)))
(and (version< "1.0" "1.0dev")
(version< "1.0dev" "1.0.1")))
Is it ok to use floating point numbers in version-regexp-alist? Otherwise, do we have a facility to parse Debian version numbers in Emacs?
Thanks!
Clément.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-03-15 22:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-15 22:43 Are floating point numbers ok in version-regexp-alist? Clément Pit-Claudel
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).