diff options
| author | Richard M. Stallman | 1994-10-17 07:26:30 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-10-17 07:26:30 +0000 |
| commit | 92cca945c470548a048bba9b4fa4ef5b2ee782eb (patch) | |
| tree | 04c48368af66e002876d6f2fec9f6e76f655be79 /src/window.c | |
| parent | 95887807517a3bb4bbdeb1a52f336e45c219ee01 (diff) | |
| download | emacs-92cca945c470548a048bba9b4fa4ef5b2ee782eb.tar.gz emacs-92cca945c470548a048bba9b4fa4ef5b2ee782eb.zip | |
(Fdisplay_buffer): In desperation case of looking for
something to split, verify that a window's frame is splittable.
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c index a4c6d7ebad1..fcb163f42fa 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1936,8 +1936,10 @@ Returns the window displaying BUFFER.") | |||
| 1936 | #endif | 1936 | #endif |
| 1937 | window = Fget_largest_window (frames); | 1937 | window = Fget_largest_window (frames); |
| 1938 | 1938 | ||
| 1939 | /* If we got a tall enough full-width window, split it. */ | 1939 | /* If we got a tall enough full-width window that can be split, |
| 1940 | split it. */ | ||
| 1940 | if (!NILP (window) | 1941 | if (!NILP (window) |
| 1942 | && ! FRAME_NO_SPLIT_P (XFRAME (XWINDOW (window)->frame)) | ||
| 1941 | && window_height (window) >= split_height_threshold | 1943 | && window_height (window) >= split_height_threshold |
| 1942 | && (XFASTINT (XWINDOW (window)->width) | 1944 | && (XFASTINT (XWINDOW (window)->width) |
| 1943 | == FRAME_WIDTH (XFRAME (WINDOW_FRAME (XWINDOW (window)))))) | 1945 | == FRAME_WIDTH (XFRAME (WINDOW_FRAME (XWINDOW (window)))))) |
| @@ -1945,8 +1947,10 @@ Returns the window displaying BUFFER.") | |||
| 1945 | else | 1947 | else |
| 1946 | { | 1948 | { |
| 1947 | window = Fget_lru_window (frames); | 1949 | window = Fget_lru_window (frames); |
| 1948 | /* If the LRU window is selected, and big enough, split it. */ | 1950 | /* If the LRU window is selected, and big enough, |
| 1951 | and can be split, split it. */ | ||
| 1949 | if (!NILP (window) | 1952 | if (!NILP (window) |
| 1953 | && ! FRAME_NO_SPLIT_P (XFRAME (XWINDOW (window)->frame)) | ||
| 1950 | && (EQ (window, selected_window) | 1954 | && (EQ (window, selected_window) |
| 1951 | || EQ (XWINDOW (window)->parent, Qnil)) | 1955 | || EQ (XWINDOW (window)->parent, Qnil)) |
| 1952 | && window_height (window) >= window_min_height << 1) | 1956 | && window_height (window) >= window_min_height << 1) |