Commit 61dfccfd authored by Miles Bader's avatar Miles Bader
Browse files

(resize-temp-buffer-window): Add hack to avoid last line

being obscured by whizzy mode-lines on graphical displays.
parent f7e383f0
2000-10-17 Miles Bader <miles@gnu.org>
* help.el (resize-temp-buffer-window): Add hack to avoid last line
being obscured by whizzy mode-lines on graphics displays.
2000-10-17 Eli Zaretskii <eliz@is.elta.co.il>
* info.el (Info-title-1-face, Info-title-2-face)
......
......@@ -1470,6 +1470,11 @@ out of view."
(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).
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment