# HG changeset patch # User Miles Bader # Date 971780671 0 # Node ID 85cf11e21bd1667d7d7e96efe9895d93fb382ef9 # Parent 7075cbfa4c73bf002cf8adedc1f1b4b9afc019a6 (resize-temp-buffer-window): Add hack to avoid last line being obscured by whizzy mode-lines on graphical displays. diff -r 7075cbfa4c73 -r 85cf11e21bd1 lisp/help.el --- a/lisp/help.el Tue Oct 17 09:13:06 2000 +0000 +++ b/lisp/help.el Tue Oct 17 11:04:31 2000 +0000 @@ -1470,6 +1470,11 @@ (min-height (1- window-min-height)) (text-height (count-screen-lines)) (new-height (max (min text-height max-height) min-height))) + (when (display-graphic-p) + ;; This egregious hack is because mode-lines on graphics + ;; displays often use faces that make them more than one `line' + ;; high, and so obscure the last line of the window proper. + (setq win-height (1- win-height))) (enlarge-window (- new-height win-height))))) ;; `help-manyarg-func-alist' is defined primitively (in doc.c).