aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Djärv2007-07-09 12:00:56 +0000
committerJan Djärv2007-07-09 12:00:56 +0000
commit825906b8afc9f011ac6f7a16fcfbbafdf0226523 (patch)
treee9178e58e6ef177863fc7e01b3b92320cad37e14
parent69e4c7c4bacf19e9e004605fcb1c067e478beffe (diff)
downloademacs-825906b8afc9f011ac6f7a16fcfbbafdf0226523.tar.gz
emacs-825906b8afc9f011ac6f7a16fcfbbafdf0226523.zip
(fit-window-to-buffer): Remove setting of window-min-height
to 1 as enlarge-window uses the value to resize/shrink windows other than WINDOW if needed.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/window.el5
2 files changed, 7 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 25ed4c24e31..3f9d5b3bce1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12007-07-09 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2
3 * window.el (fit-window-to-buffer): Remove setting of window-min-height
4 to 1 as enlarge-window uses the value to resize/shrink windows other than
5 WINDOW if needed.
6
12007-07-08 Katsumi Yamaoka <yamaoka@jpl.org> 72007-07-08 Katsumi Yamaoka <yamaoka@jpl.org>
2 8
3 * cus-start.el (file-coding-system-alist): Fix custom type. 9 * cus-start.el (file-coding-system-alist): Fix custom type.
diff --git a/lisp/window.el b/lisp/window.el
index 921d84d6e7d..216e89249c6 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -645,10 +645,7 @@ header-line."
645 ;; desired-height lines, constrained by MIN-HEIGHT and MAX-HEIGHT. 645 ;; desired-height lines, constrained by MIN-HEIGHT and MAX-HEIGHT.
646 (- (max (min desired-height max-height) 646 (- (max (min desired-height max-height)
647 (or min-height window-min-height)) 647 (or min-height window-min-height))
648 window-height)) 648 window-height)))
649 ;; We do our own height checking, so avoid any restrictions due to
650 ;; window-min-height.
651 (window-min-height 1))
652 649
653 ;; Don't try to redisplay with the cursor at the end 650 ;; Don't try to redisplay with the cursor at the end
654 ;; on its own line--that would force a scroll and spoil things. 651 ;; on its own line--that would force a scroll and spoil things.