Mercurial > emacs
comparison lisp/window.el @ 6019:0c0b00572d96
(shrink-window-if-larger-than-buffer): Don't shrink if the window that would
expand is the minibuffer.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Mon, 21 Feb 1994 21:40:59 +0000 |
parents | 4f8cf717fca0 |
children | b2c5fca3c10c |
comparison
equal
deleted
inserted
replaced
6018:51d9a0c72a29 | 6019:0c0b00572d96 |
---|---|
154 (and (not (eobp)) | 154 (and (not (eobp)) |
155 (eq ?\n (char-after (1- (point-max)))))) | 155 (eq ?\n (char-after (1- (point-max)))))) |
156 (window-min-height 0) | 156 (window-min-height 0) |
157 (buffer-read-only nil) | 157 (buffer-read-only nil) |
158 (modified (buffer-modified-p)) | 158 (modified (buffer-modified-p)) |
159 (buffer (current-buffer))) | 159 (buffer (current-buffer)) |
160 (mini (cdr (assq 'minibuffer (frame-parameters)))) | |
161 (edges (window-edges (selected-window)))) | |
160 (if (and (< 1 (count-windows)) | 162 (if (and (< 1 (count-windows)) |
161 (pos-visible-in-window-p (point-min) window)) | 163 (pos-visible-in-window-p (point-min) window) |
164 (or (not mini) | |
165 (< (nth 3 edges) | |
166 (nth 1 (window-edges mini))) | |
167 (> (nth 1 edges) | |
168 (cdr (assq 'menu-bar-lines (frame-parameters)))))) | |
162 (unwind-protect | 169 (unwind-protect |
163 (progn | 170 (progn |
164 (select-window (or window w)) | 171 (select-window (or window w)) |
165 (goto-char (point-min)) | 172 (goto-char (point-min)) |
166 (while (pos-visible-in-window-p | 173 (while (pos-visible-in-window-p |