2000-10-22 Miles Bader <miles@gnu.org>
+ * window.el (fit-window-to-buffer): Change defaulting of
+ MAX-HEIGHT slightly.
+
* faces.el (color-values, color-defined-p): Use `member', not
`memq', because it works correctly for strings.
(frame-set-background-mode): Actually, "unspecified-fg" and
(when (null window)
(setq window (selected-window)))
+ (when (null max-height)
+ (setq max-height (frame-height (window-frame window))))
(let* ((window-height
;; The current height of WINDOW
(delta
;; Calculate how much the window height has to change to show
;; text-height lines, constrained by MIN-HEIGHT and MAX-HEIGHT.
- (- (max (min (+ text-height extra)
- (or max-height
- (frame-height
- (window-frame
- (or window (selected-window))))))
+ (- (max (min (+ text-height extra) max-height)
(or min-height window-min-height))
window-height))
;; We do our own height checking, so avoid any restrictions due to