diff options
| author | Martin Rudalics | 2007-07-17 07:27:27 +0000 |
|---|---|---|
| committer | Martin Rudalics | 2007-07-17 07:27:27 +0000 |
| commit | 71ec17e68295ebf6b570b17a7303612052bbd12b (patch) | |
| tree | 260f295fb8d7767555486536c06a863a9d65cd0a /src | |
| parent | 857cc3fc2c4250480caae0b663210af0b6913987 (diff) | |
| download | emacs-71ec17e68295ebf6b570b17a7303612052bbd12b.tar.gz emacs-71ec17e68295ebf6b570b17a7303612052bbd12b.zip | |
(Fdisplay_buffer): If largest or LRU window is the
only window, split it even if it is not eligible for splitting.
This restores the original behavior broken by the 2007-07-15
change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/window.c | 19 |
2 files changed, 17 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e9f89ae554d..441f2c67922 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2007-07-17 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * window.c (Fdisplay_buffer): If largest or LRU window is the | ||
| 4 | only window, split it even if it is not eligible for splitting. | ||
| 5 | This restores the original behavior broken by the 2007-07-15 | ||
| 6 | change. | ||
| 7 | |||
| 1 | 2007-07-17 Glenn Morris <rgm@gnu.org> | 8 | 2007-07-17 Glenn Morris <rgm@gnu.org> |
| 2 | 9 | ||
| 3 | * abbrev.c (abbrev_check_chars): New function. | 10 | * abbrev.c (abbrev_check_chars): New function. |
diff --git a/src/window.c b/src/window.c index c32b1a34f7d..8e75ef7f5d2 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -3738,12 +3738,13 @@ displayed. */) | |||
| 3738 | else | 3738 | else |
| 3739 | window = Fget_largest_window (frames, Qt); | 3739 | window = Fget_largest_window (frames, Qt); |
| 3740 | 3740 | ||
| 3741 | /* If we got a tall enough full-width window that can be split, | 3741 | /* If the largest window is tall enough, full-width, and either eligible |
| 3742 | split it. */ | 3742 | for splitting or the only window, split it. */ |
| 3743 | if (!NILP (window) | 3743 | if (!NILP (window) |
| 3744 | && ! FRAME_NO_SPLIT_P (XFRAME (XWINDOW (window)->frame)) | 3744 | && ! FRAME_NO_SPLIT_P (XFRAME (XWINDOW (window)->frame)) |
| 3745 | && WINDOW_FULL_WIDTH_P (XWINDOW (window)) | 3745 | && WINDOW_FULL_WIDTH_P (XWINDOW (window)) |
| 3746 | && window_height (window) >= split_height_threshold | 3746 | && (window_height (window) >= split_height_threshold |
| 3747 | || (NILP (XWINDOW (window)->parent))) | ||
| 3747 | && (window_height (window) | 3748 | && (window_height (window) |
| 3748 | >= (2 * window_min_size_2 (XWINDOW (window), 0)))) | 3749 | >= (2 * window_min_size_2 (XWINDOW (window), 0)))) |
| 3749 | window = Fsplit_window (window, Qnil, Qnil); | 3750 | window = Fsplit_window (window, Qnil, Qnil); |
| @@ -3752,13 +3753,13 @@ displayed. */) | |||
| 3752 | Lisp_Object upper, lower, other; | 3753 | Lisp_Object upper, lower, other; |
| 3753 | 3754 | ||
| 3754 | window = Fget_lru_window (frames, Qt); | 3755 | window = Fget_lru_window (frames, Qt); |
| 3755 | /* If the LRU window is selected, and big enough, | 3756 | /* If the LRU window is tall enough, and either eligible for splitting |
| 3756 | and can be split, split it. */ | 3757 | and selected or the only window, split it. */ |
| 3757 | if (!NILP (window) | 3758 | if (!NILP (window) |
| 3758 | && ! FRAME_NO_SPLIT_P (XFRAME (XWINDOW (window)->frame)) | 3759 | && ! FRAME_NO_SPLIT_P (XFRAME (XWINDOW (window)->frame)) |
| 3759 | && (EQ (window, selected_window) | 3760 | && ((EQ (window, selected_window) |
| 3760 | || NILP (XWINDOW (window)->parent)) | 3761 | && window_height (window) >= split_height_threshold) |
| 3761 | && window_height (window) >= split_height_threshold | 3762 | || (NILP (XWINDOW (window)->parent))) |
| 3762 | && (window_height (window) | 3763 | && (window_height (window) |
| 3763 | >= (2 * window_min_size_2 (XWINDOW (window), 0)))) | 3764 | >= (2 * window_min_size_2 (XWINDOW (window), 0)))) |
| 3764 | window = Fsplit_window (window, Qnil, Qnil); | 3765 | window = Fsplit_window (window, Qnil, Qnil); |
| @@ -7601,4 +7602,4 @@ keys_of_window () | |||
| 7601 | } | 7602 | } |
| 7602 | 7603 | ||
| 7603 | /* arch-tag: 90a9c576-0590-48f1-a5f1-6c96a0452d9f | 7604 | /* arch-tag: 90a9c576-0590-48f1-a5f1-6c96a0452d9f |
| 7604 | (do not change this comment) */ | 7605 | (do not change thisc omment) */ |