aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2011-08-28 17:32:50 -0400
committerChong Yidong2011-08-28 17:32:50 -0400
commitfb87e0fb94a5ec2018c677a91c62eebea5a978eb (patch)
tree16dc520e6b147c4ee554b0f61f875144f6e683b2
parente2aeef63a646f08348c53b1ad94384f427593209 (diff)
downloademacs-fb87e0fb94a5ec2018c677a91c62eebea5a978eb.tar.gz
emacs-fb87e0fb94a5ec2018c677a91c62eebea5a978eb.zip
Fix package menu bug in marking obsolete packages for deletion.
* lisp/emacs-lisp/package.el (package-menu-mark-delete): Allow marking obsolete packages for deletion.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/package.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a6a81ff0fb2..03423942f4f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-08-28 Chong Yidong <cyd@stupidchicken.com>
2
3 * emacs-lisp/package.el (package-menu-mark-delete): Allow marking
4 obsolete packages for deletion.
5
12011-08-28 Christoph Scholtes <cschol2112@googlemail.com> 62011-08-28 Christoph Scholtes <cschol2112@googlemail.com>
2 7
3 * help-mode.el (help-mode-map): Add special-mode-map to parent. 8 * help-mode.el (help-mode-map): Add special-mode-map to parent.
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 88282606aa8..caf0ec2e8b8 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -1440,7 +1440,7 @@ If optional arg BUTTON is non-nil, describe its associated package."
1440(defun package-menu-mark-delete (num) 1440(defun package-menu-mark-delete (num)
1441 "Mark a package for deletion and move to the next line." 1441 "Mark a package for deletion and move to the next line."
1442 (interactive "p") 1442 (interactive "p")
1443 (if (string-equal (package-menu-get-status) "installed") 1443 (if (member (package-menu-get-status) '("installed" "obsolete"))
1444 (tabulated-list-put-tag "D" t) 1444 (tabulated-list-put-tag "D" t)
1445 (forward-line))) 1445 (forward-line)))
1446 1446