aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBozhidar Batsov2013-11-02 11:48:11 +0200
committerBozhidar Batsov2013-11-02 11:48:11 +0200
commit684d71c6b4df5c250960310b376e7a2fa87b6e91 (patch)
tree043a2d6f7b6c7dfbd3a5dddccd336f895230cac6
parent0c21fa44f01af50b27618f44c5dc8a4051d6f98b (diff)
downloademacs-684d71c6b4df5c250960310b376e7a2fa87b6e91.tar.gz
emacs-684d71c6b4df5c250960310b376e7a2fa87b6e91.zip
* subr.el (version-regexp-alist): Add support for snapshot versions.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/subr.el15
2 files changed, 14 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c334d2e8c3c..b2ba7d5e207 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12013-11-02 Bozhidar Batsov <bozhidar@batsov.com>
2
3 * subr.el (version-regexp-alist): Add support for snapshot versions.
4
12013-11-02 Dmitry Gutov <dgutov@yandex.ru> 52013-11-02 Dmitry Gutov <dgutov@yandex.ru>
2 6
3 * progmodes/ruby-mode.el (ruby-smie--rule-parent-skip-assign): New 7 * progmodes/ruby-mode.el (ruby-smie--rule-parent-skip-assign): New
diff --git a/lisp/subr.el b/lisp/subr.el
index 4df9c9a2a6c..05562117a51 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -4478,11 +4478,12 @@ Usually the separator is \".\", but it can be any other string.")
4478 4478
4479 4479
4480(defconst version-regexp-alist 4480(defconst version-regexp-alist
4481 '(("^[-_+ ]?alpha$" . -3) 4481 '(("^[-_+ ]?snapshot$" . -4)
4482 ("^[-_+]$" . -3) ; treat "1.2.3-20050920" and "1.2-3" as alpha releases 4482 ("^[-_+]$" . -4) ; treat "1.2.3-20050920" and "1.2-3" as snapshot releases
4483 ("^[-_+ ]cvs$" . -3) ; treat "1.2.3-CVS" as alpha release 4483 ("^[-_+ ]?\\(cvs\\|git\\|bzr\\)$" . -4) ; treat "1.2.3-CVS" as snapshot release
4484 ("^[-_+ ]?beta$" . -2) 4484 ("^[-_+ ]?alpha$" . -3)
4485 ("^[-_+ ]?\\(pre\\|rcc\\)$" . -1)) 4485 ("^[-_+ ]?beta$" . -2)
4486 ("^[-_+ ]?\\(pre\\|rcc\\)$" . -1))
4486 "Specify association between non-numeric version and its priority. 4487 "Specify association between non-numeric version and its priority.
4487 4488
4488This association is used to handle version string like \"1.0pre2\", 4489This association is used to handle version string like \"1.0pre2\",
@@ -4490,6 +4491,8 @@ This association is used to handle version string like \"1.0pre2\",
4490non-numeric part of a version string to an integer. For example: 4491non-numeric part of a version string to an integer. For example:
4491 4492
4492 String Version Integer List Version 4493 String Version Integer List Version
4494 \"0.9snapshot\" (0 9 -4)
4495 \"1.0-git\" (1 0 -4)
4493 \"1.0pre2\" (1 0 -1 2) 4496 \"1.0pre2\" (1 0 -1 2)
4494 \"1.0PRE2\" (1 0 -1 2) 4497 \"1.0PRE2\" (1 0 -1 2)
4495 \"22.8beta3\" (22 8 -2 3) 4498 \"22.8beta3\" (22 8 -2 3)
@@ -4546,6 +4549,8 @@ Examples of version conversion:
4546 \"0.9alpha1\" (0 9 -3 1) 4549 \"0.9alpha1\" (0 9 -3 1)
4547 \"0.9AlphA1\" (0 9 -3 1) 4550 \"0.9AlphA1\" (0 9 -3 1)
4548 \"0.9alpha\" (0 9 -3) 4551 \"0.9alpha\" (0 9 -3)
4552 \"0.9snapshot\" (0 9 -4)
4553 \"1.0-git\" (1 0 -4)
4549 4554
4550See documentation for `version-separator' and `version-regexp-alist'." 4555See documentation for `version-separator' and `version-regexp-alist'."
4551 (or (and (stringp ver) (> (length ver) 0)) 4556 (or (and (stringp ver) (> (length ver) 0))