emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r110665: * lisp/emacs-lisp/package.el


From: Stefan Monnier
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r110665: * lisp/emacs-lisp/package.el (package-installed-p): Warn if not ready.
Date: Thu, 25 Oct 2012 08:38:09 -0400
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 110665
fixes bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12721
committer: Stefan Monnier <address@hidden>
branch nick: trunk
timestamp: Thu 2012-10-25 08:38:09 -0400
message:
  * lisp/emacs-lisp/package.el (package-installed-p): Warn if not ready.
modified:
  lisp/ChangeLog
  lisp/emacs-lisp/package.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2012-10-25 00:58:40 +0000
+++ b/lisp/ChangeLog    2012-10-25 12:38:09 +0000
@@ -1,3 +1,8 @@
+2012-10-25  Stefan Monnier  <address@hidden>
+
+       * emacs-lisp/package.el (package-installed-p): Warn if not ready
+       (bug#12721).
+
 2012-10-25  Glenn Morris  <address@hidden>
 
        * emacs-lisp/cl-macs.el (cl-progv): Doc fix.

=== modified file 'lisp/emacs-lisp/package.el'
--- a/lisp/emacs-lisp/package.el        2012-09-24 16:36:42 +0000
+++ b/lisp/emacs-lisp/package.el        2012-10-25 12:38:09 +0000
@@ -728,6 +728,7 @@
 (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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]