diff lisp/help-mode.el @ 109027:858e3e43cfd5

Tweaks to package list UI. * help-mode.el (help-package): New button type. * emacs-lisp/package.el (package-print-package): Add link to package description via describe-package. (describe-package-1): List package requirements. Add button to perform installation. (package-menu-describe-package): New command.
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 20 Jun 2010 00:55:14 -0400
parents c138aa96dae8
children 280c8ae2476d
line wrap: on
line diff
--- a/lisp/help-mode.el	Sat Jun 19 18:36:51 2010 -0400
+++ b/lisp/help-mode.el	Sun Jun 20 00:55:14 2010 -0400
@@ -244,6 +244,11 @@
 		       (message "Unable to find location in file"))))
   'help-echo (purecopy "mouse-2, RET: find face's definition"))
 
+(define-button-type 'help-package
+  :supertype 'help-xref
+  'help-function 'describe-package
+  'help-echo (purecopy "mouse-2, RET: Describe package"))
+
 (define-button-type 'help-package-def
   :supertype 'help-xref
   'help-function (lambda (file) (dired file))