diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-04-16 00:06:58 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-04-16 00:06:58 +0000 |
commit | 9fcc351ae677346d50f438d25293ee2b4c743062 (patch) | |
tree | 199d29169594a5f987659b01e361b59040b21c07 /lisp/window.el | |
parent | 17852994a22d0bc982c8058a61526281bf9e11a6 (diff) | |
download | emacs-9fcc351ae677346d50f438d25293ee2b4c743062.tar.gz |
(shrink-window-if-larger-than-buffer):
Do nothing for side-by-side windows.
Diffstat (limited to 'lisp/window.el')
-rw-r--r-- | lisp/window.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/window.el b/lisp/window.el index 57fadfd5701..10206e20859 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -143,6 +143,7 @@ ARG columns. No arg means split equally." "Shrink the WINDOW to be as small as possible to display its contents. Do nothing if the buffer contains more lines than the present window height, or if some of the window's contents are scrolled out of view, +or if the window is not the full width of the frame, or if the window is the only window of its frame." (interactive) (save-excursion @@ -163,6 +164,7 @@ or if the window is the only window of its frame." (mini (cdr (assq 'minibuffer (frame-parameters)))) (edges (window-edges (selected-window)))) (if (and (< 1 (count-windows)) + (= (window-width) (screen-width)) (pos-visible-in-window-p (point-min) window) (or (not mini) (< (nth 3 edges) |