aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2012-05-06 12:05:43 +0800
committerChong Yidong2012-05-06 12:05:43 +0800
commit25f292cd48febec5f9b133db922b3b0dc32185c3 (patch)
tree408bc3ea676d051e6064f39747d36a9b3619f445
parent13a629967daef1979b4496db8471c14a67413aae (diff)
downloademacs-25f292cd48febec5f9b133db922b3b0dc32185c3.tar.gz
emacs-25f292cd48febec5f9b133db922b3b0dc32185c3.zip
* emacs-lisp/package.el (package-built-in-p): Handle `emacs' package.
Fixes: debbugs:11410
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/package.el7
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2442582114d..ad22a25cfd7 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12012-05-06 Chong Yidong <cyd@gnu.org>
2
3 * emacs-lisp/package.el (package-built-in-p): Handle the `emacs'
4 package (Bug#11410).
5
12012-05-05 Chong Yidong <cyd@gnu.org> 62012-05-05 Chong Yidong <cyd@gnu.org>
2 7
3 * emacs-lisp/package.el (package-buffer-info): Avoid putting local 8 * emacs-lisp/package.el (package-buffer-info): Avoid putting local
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 73afdb82509..4ed8aacf0b6 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -469,8 +469,11 @@ NAME and VERSION are both strings."
469Optional arg MIN-VERSION, if non-nil, should be a version list 469Optional arg MIN-VERSION, if non-nil, should be a version list
470specifying the minimum acceptable version." 470specifying the minimum acceptable version."
471 (require 'finder-inf nil t) ; For `package--builtins'. 471 (require 'finder-inf nil t) ; For `package--builtins'.
472 (let ((elt (assq package package--builtins))) 472 (if (eq package 'emacs)
473 (and elt (version-list-<= min-version (package-desc-vers (cdr elt)))))) 473 (version-list-<= min-version (version-to-list emacs-version))
474 (let ((elt (assq package package--builtins)))
475 (and elt (version-list-<= min-version
476 (package-desc-vers (cdr elt)))))))
474 477
475;; This function goes ahead and activates a newer version of a package 478;; This function goes ahead and activates a newer version of a package
476;; if an older one was already activated. This is not ideal; we'd at 479;; if an older one was already activated. This is not ideal; we'd at