changeset 81755:0e1206aba797

(disabled-command-function): Fit window to buffer to make last line visible.
author Martin Rudalics <rudalics@gmx.at>
date Sun, 08 Jul 2007 08:27:32 +0000
parents 787c85f7fe05
children 284e4c2b1eff
files lisp/novice.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/novice.el	Sun Jul 08 08:21:13 2007 +0000
+++ b/lisp/novice.el	Sun Jul 08 08:27:32 2007 +0000
@@ -88,8 +88,9 @@
 SPC to try the command just this once, but leave it disabled.
 !   to try it, and enable all disabled commands for this session only.")
        (save-excursion
-	(set-buffer standard-output)
-	(help-mode)))
+	 (set-buffer standard-output)
+	 (help-mode)))
+     (fit-window-to-buffer (get-buffer-window "*Disabled Command*"))
      (message "Type y, n, ! or SPC (the space bar): ")
      (let ((cursor-in-echo-area t))
        (while (progn (setq char (read-event))