Commit a7723be6 authored by Stefan Monnier's avatar Stefan Monnier

* lisp/emacs-lisp/package.el (package-installed-p): Warn if not ready.

Fixes: debbugs:12721
parent f956e59d
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment