Mercurial > hg > xemacs-beta
diff lisp/prim/help.el @ 98:0d2f883870bc r20-1b1
Import from CVS: tag r20-1b1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:13:56 +0200 |
parents | 1ce6082ce73f |
children | 4be1180a9e89 |
line wrap: on
line diff
--- a/lisp/prim/help.el Mon Aug 13 09:12:43 2007 +0200 +++ b/lisp/prim/help.el Mon Aug 13 09:13:56 2007 +0200 @@ -45,10 +45,7 @@ ;; global-map definitions moved to keydefs.el (fset 'help-command help-map) -(let ((ch help-char)) - (if (or (characterp ch) (integerp ch)) - (setq ch (char-to-string ch))) - (define-key help-map ch 'help-for-help)) +(define-key help-map (vector help-char) 'help-for-help) (define-key help-map "?" 'help-for-help) (define-key help-map 'help 'help-for-help) @@ -382,7 +379,8 @@ (t (message (substitute-command-keys "Type \\[switch-to-buffer-other-window] to restore the other window, \\[scroll-other-window] to scroll the help.")))) - (shrink-window-if-larger-than-buffer helpwin))))))) + (when temp-buffer-shrink-to-fit + (shrink-window-if-larger-than-buffer helpwin)))))))) (defun describe-key (key) "Display documentation of the function invoked by KEY.