* lisp/emacs-lisp/package.el (list-packages): Fix echo area message.
authorChong Yidong <cyd@stupidchicken.com>
Tue, 27 Sep 2011 15:58:13 +0000 (11:58 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 27 Sep 2011 15:58:13 +0000 (11:58 -0400)
lisp/ChangeLog
lisp/emacs-lisp/package.el

index ec867fe..50dccb4 100644 (file)
@@ -1,3 +1,7 @@
+2011-09-27  Chong Yidong  <cyd@stupidchicken.com>
+
+       * emacs-lisp/package.el (list-packages): Fix echo area message.
+
 2011-09-27  Leo Liu  <sdl.web@gmail.com>
 
        * ido.el (ido-read-internal): Accept cons cell HIST arg.
index 4cab8f4..2e340a4 100644 (file)
@@ -1658,10 +1658,11 @@ The list is displayed in a buffer named `*Packages*'."
     (switch-to-buffer buf))
   (let ((upgrades (package-menu--find-upgrades)))
     (if upgrades
-       (message "%d package%s can be upgraded; type `%s' to mark them for upgrading."
+       (message "%d package%s can be upgraded; type `%s' to mark %s for upgrading."
                 (length upgrades)
                 (if (= (length upgrades) 1) "" "s")
-                (substitute-command-keys "\\[package-menu-mark-upgrades]")))))
+                (substitute-command-keys "\\[package-menu-mark-upgrades]")
+                (if (= (length upgrades) 1) "it" "them")))))
 
 ;;;###autoload
 (defalias 'package-list-packages 'list-packages)