mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-04 11:40:22 +00:00
* lisp/emacs-lisp/package.el (package-installed-p): Warn if not ready.
Fixes: debbugs:12721
This commit is contained in:
parent
f956e59dbb
commit
a7723be6dd
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user