From 61dfccfd5d8d89e628b7fd953dea717a01f70b1c Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 17 Oct 2000 11:08:03 +0000 Subject: [PATCH] (resize-temp-buffer-window): Add hack to avoid last line being obscured by whizzy mode-lines on graphical displays. --- lisp/ChangeLog | 5 +++++ lisp/help.el | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e7e0fac31ef..1da01327664 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2000-10-17 Miles Bader + + * 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 * info.el (Info-title-1-face, Info-title-2-face) 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). -- 2.39.2