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
a7723be6
Commit
a7723be6
authored
Oct 25, 2012
by
Stefan Monnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* lisp/emacs-lisp/package.el (package-installed-p): Warn if not ready.
Fixes: debbugs:12721
parent
f956e59d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/emacs-lisp/package.el
lisp/emacs-lisp/package.el
+1
-0
No files found.
lisp/ChangeLog
View file @
a7723be6
2012-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/package.el (package-installed-p): Warn if not ready
(bug#12721).
2012-10-25 Glenn Morris <rgm@gnu.org>
* emacs-lisp/cl-macs.el (cl-progv): Doc fix.
...
...
lisp/emacs-lisp/package.el
View file @
a7723be6
...
...
@@ -728,6 +728,7 @@ It will move point to somewhere in the headers."
(
defun
package-installed-p
(
package
&optional
min-version
)
"Return true if PACKAGE, of MIN-VERSION or newer, is installed.
MIN-VERSION should be a version list."
(
unless
package--initialized
(
error
"package.el is not yet initialized!"
))
(
let
((
pkg-desc
(
assq
package
package-alist
)))
(
if
pkg-desc
(
version-list-<=
min-version
...
...
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