1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-30 19:53:09 +00:00

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

being obscured by whizzy mode-lines on graphical displays.
This commit is contained in:
Miles Bader 2000-10-17 11:08:03 +00:00
parent f7e383f095
commit 61dfccfd5d
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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)

View File

@ -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).