summaryrefslogtreecommitdiff
path: root/lisp/help.el
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2000-10-17 11:08:03 +0000
committerMiles Bader <miles@gnu.org>2000-10-17 11:08:03 +0000
commit61dfccfd5d8d89e628b7fd953dea717a01f70b1c (patch)
tree397090cb6d26d8656d1f076bb669465c3f8be4dc /lisp/help.el
parentf7e383f09531290e81c5478f0b52295c402430c0 (diff)
downloademacs-61dfccfd5d8d89e628b7fd953dea717a01f70b1c.tar.gz
(resize-temp-buffer-window): Add hack to avoid last line
being obscured by whizzy mode-lines on graphical displays.
Diffstat (limited to 'lisp/help.el')
-rw-r--r--lisp/help.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/help.el b/lisp/help.el
index d8225a835f5..2f84ce1cf1f 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -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).