aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index 8a2c16598ec..03ca22dd525 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3272,6 +3272,10 @@ If FRAME is nil, search only the selected frame
3272 unless `pop-up-frames' or `display-buffer-reuse-frames' is non-nil, 3272 unless `pop-up-frames' or `display-buffer-reuse-frames' is non-nil,
3273 which means search visible and iconified frames. 3273 which means search visible and iconified frames.
3274 3274
3275If a full-width window on a splittable frame is available to display
3276the buffer, it may be split, subject to the value of the variable
3277`split-height-threshold'.
3278
3275If `even-window-heights' is non-nil, window heights will be evened out 3279If `even-window-heights' is non-nil, window heights will be evened out
3276if displaying the buffer causes two vertically adjacent windows to be 3280if displaying the buffer causes two vertically adjacent windows to be
3277displayed. */) 3281displayed. */)
@@ -3587,7 +3591,8 @@ DEFUN ("split-window", Fsplit_window, Ssplit_window, 0, 3, "",
3587WINDOW defaults to selected one and SIZE to half its size. 3591WINDOW defaults to selected one and SIZE to half its size.
3588If optional third arg HORFLAG is non-nil, split side by side 3592If optional third arg HORFLAG is non-nil, split side by side
3589and put SIZE columns in the first of the pair. In that case, 3593and put SIZE columns in the first of the pair. In that case,
3590SIZE includes that window's scroll bar, or the divider column to its right. */) 3594SIZE includes that window's scroll bar, or the divider column to its right.
3595Returns the newly-created window. */)
3591 (window, size, horflag) 3596 (window, size, horflag)
3592 Lisp_Object window, size, horflag; 3597 Lisp_Object window, size, horflag;
3593{ 3598{
@@ -6594,7 +6599,7 @@ See also `same-window-buffer-names'. */);
6594 next_screen_context_lines = 2; 6599 next_screen_context_lines = 2;
6595 6600
6596 DEFVAR_INT ("split-height-threshold", &split_height_threshold, 6601 DEFVAR_INT ("split-height-threshold", &split_height_threshold,
6597 doc: /* *display-buffer would prefer to split the largest window if this large. 6602 doc: /* *A window must be at least this tall to be eligible for splitting by `display-buffer'.
6598If there is only one window, it is split regardless of this value. */); 6603If there is only one window, it is split regardless of this value. */);
6599 split_height_threshold = 500; 6604 split_height_threshold = 500;
6600 6605