Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d1c0ea6a
Commit
d1c0ea6a
authored
Nov 02, 2013
by
Bozhidar Batsov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* lisp/emacs-lisp/package.el (package-version-join): Recognize snapshot versions.
parent
684d71c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/emacs-lisp/package.el
lisp/emacs-lisp/package.el
+3
-2
No files found.
lisp/ChangeLog
View file @
d1c0ea6a
2013-11-02 Bozhidar Batsov <bozhidar@batsov.com>
* emacs-lisp/package.el (package-version-join): Recognize
snapshot versions.
2013-11-02 Bozhidar Batsov <bozhidar@batsov.com>
* subr.el (version-regexp-alist): Add support for snapshot versions.
...
...
lisp/emacs-lisp/package.el
View file @
d1c0ea6a
...
...
@@ -429,7 +429,7 @@ This is, approximately, the inverse of `version-to-list'.
((
>=
num
0
)
(
push
(
int-to-string
num
)
str-list
)
(
push
"."
str-list
))
((
<
num
-
3
)
((
<
num
-
4
)
(
error
"Invalid version list `%s'"
vlist
))
(
t
;; pre, or beta, or alpha
...
...
@@ -439,7 +439,8 @@ This is, approximately, the inverse of `version-to-list'.
(
error
"Invalid version list `%s'"
vlist
)))
(
push
(
cond
((
=
num
-1
)
"pre"
)
((
=
num
-2
)
"beta"
)
((
=
num
-3
)
"alpha"
))
((
=
num
-3
)
"alpha"
)
((
=
num
-4
)
"snapshot"
))
str-list
))))
(
if
(
equal
"."
(
car
str-list
))
(
pop
str-list
))
...
...
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