aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2000-10-20 09:23:20 +0000
committerMiles Bader2000-10-20 09:23:20 +0000
commit8c6e4a58a3fec44eb11c3aded4d36d7ea742cda5 (patch)
tree45a2e58b4b6b72e7110bff794b54255e8847e693
parent8075a110582c9886160505924dfb2fbea7c91fa4 (diff)
downloademacs-8c6e4a58a3fec44eb11c3aded4d36d7ea742cda5.tar.gz
emacs-8c6e4a58a3fec44eb11c3aded4d36d7ea742cda5.zip
(resize-temp-buffer-window): Use `mode-line-window-height-fudge'.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/help.el9
2 files changed, 9 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a31de5e7d6f..9f2e71098e6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,11 @@
12000-10-20 Miles Bader <miles@lsi.nec.co.jp> 12000-10-20 Miles Bader <miles@lsi.nec.co.jp>
2 2
3 * window.el (mode-line-window-height-fudge): New variable.
4 (height-affecting-face-attributes): New variable.
5 (mode-line-window-height-fudge): New function.
6 (shrink-window-if-larger-than-buffer): Use it.
7 * help.el (resize-temp-buffer-window): Likewise.
8
3 * info.el (Info-fontify-node): Add support for @subsubsection 9 * info.el (Info-fontify-node): Add support for @subsubsection
4 titles, which use `Info-title-4-face'. 10 titles, which use `Info-title-4-face'.
5 (Info-title-4-face): New face. 11 (Info-title-4-face): New face.
diff --git a/lisp/help.el b/lisp/help.el
index 2f84ce1cf1f..a607d81511b 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -1466,15 +1466,12 @@ out of view."
1466 (let* ((max-height (if (functionp temp-buffer-max-height) 1466 (let* ((max-height (if (functionp temp-buffer-max-height)
1467 (funcall temp-buffer-max-height (current-buffer)) 1467 (funcall temp-buffer-max-height (current-buffer))
1468 temp-buffer-max-height)) 1468 temp-buffer-max-height))
1469 (win-height (1- (window-height))) 1469 (win-height (- (window-height)
1470 (mode-line-window-height-fudge)
1471 1))
1470 (min-height (1- window-min-height)) 1472 (min-height (1- window-min-height))
1471 (text-height (count-screen-lines)) 1473 (text-height (count-screen-lines))
1472 (new-height (max (min text-height max-height) min-height))) 1474 (new-height (max (min text-height max-height) min-height)))
1473 (when (display-graphic-p)
1474 ;; This egregious hack is because mode-lines on graphics
1475 ;; displays often use faces that make them more than one `line'
1476 ;; high, and so obscure the last line of the window proper.
1477 (setq win-height (1- win-height)))
1478 (enlarge-window (- new-height win-height))))) 1475 (enlarge-window (- new-height win-height)))))
1479 1476
1480;; `help-manyarg-func-alist' is defined primitively (in doc.c). 1477;; `help-manyarg-func-alist' is defined primitively (in doc.c).