1
0
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:
Stefan Monnier 2012-10-25 08:38:09 -04:00
parent f956e59dbb
commit a7723be6dd
2 changed files with 6 additions and 0 deletions

View File

@ -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.

View File

@ -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