Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
0d5363c4
Commit
0d5363c4
authored
Nov 14, 2013
by
Bozhidar Batsov
Browse files
* lisp/subr.el (version-regexp-alist):
Recognize hg, svn and darcs versions as snapshot versions.
parent
99f5d074
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/subr.el
lisp/subr.el
+8
-6
No files found.
lisp/ChangeLog
View file @
0d5363c4
2013-11-14 Bozhidar Batsov <bozhidar@batsov.com>
* subr.el (version-regexp-alist):
Recognize hg, svn and darcs versions as snapshot versions.
* progmodes/ruby-mode.el (ruby-mode-set-encoding):
Add the ability to always insert an utf-8 encoding comment.
Fix and simplify coding comment update logic.
...
...
lisp/subr.el
View file @
0d5363c4
...
...
@@ -4470,12 +4470,14 @@ Usually the separator is \".\", but it can be any other string.")
(
defconst
version-regexp-alist
'
((
"^[-_+ ]?snapshot$"
.
-4
)
(
"^[-_+]$"
.
-4
)
; treat "1.2.3-20050920" and "1.2-3" as snapshot releases
(
"^[-_+ ]?\\(cvs\\|git\\|bzr\\)$"
.
-4
)
; treat "1.2.3-CVS" as snapshot release
(
"^[-_+ ]?alpha$"
.
-3
)
(
"^[-_+ ]?beta$"
.
-2
)
(
"^[-_+ ]?\\(pre\\|rcc\\)$"
.
-1
))
'
((
"^[-_+ ]?snapshot$"
.
-4
)
;; treat "1.2.3-20050920" and "1.2-3" as snapshot releases
(
"^[-_+]$"
.
-4
)
;; treat "1.2.3-CVS" as snapshot release
(
"^[-_+ ]?\\(cvs\\|git\\|bzr\\|svn\\|hg\\|darcs\\)$"
.
-4
)
(
"^[-_+ ]?alpha$"
.
-3
)
(
"^[-_+ ]?beta$"
.
-2
)
(
"^[-_+ ]?\\(pre\\|rcc\\)$"
.
-1
))
"Specify association between non-numeric version and its priority.
This association is used to handle version string like \"1.0pre2\",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment