aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/window.c b/src/window.c
index c32234b5fcd..f1177be3d99 100644
--- a/src/window.c
+++ b/src/window.c
@@ -602,15 +602,18 @@ Return nil if WINDOW has no previous sibling. */)
602 return decode_valid_window (window)->prev; 602 return decode_valid_window (window)->prev;
603} 603}
604 604
605DEFUN ("window-combination-limit", Fwindow_combination_limit, Swindow_combination_limit, 0, 1, 0, 605DEFUN ("window-combination-limit", Fwindow_combination_limit, Swindow_combination_limit, 1, 1, 0,
606 doc: /* Return combination limit of window WINDOW. 606 doc: /* Return combination limit of window WINDOW.
607WINDOW must be a valid window and defaults to the selected one.
608If the return value is nil, child windows of WINDOW can be recombined with 607If the return value is nil, child windows of WINDOW can be recombined with
609WINDOW's siblings. A return value of t means that child windows of 608WINDOW's siblings. A return value of t means that child windows of
610WINDOW are never \(re-)combined with WINDOW's siblings. */) 609WINDOW are never \(re-)combined with WINDOW's siblings.
610
611WINDOW must be a valid window. The return value is meaningful for
612internal windows only. */)
611 (Lisp_Object window) 613 (Lisp_Object window)
612{ 614{
613 return decode_valid_window (window)->combination_limit; 615 CHECK_VALID_WINDOW (window);
616 return XWINDOW (window)->combination_limit;
614} 617}
615 618
616DEFUN ("set-window-combination-limit", Fset_window_combination_limit, Sset_window_combination_limit, 2, 2, 0, 619DEFUN ("set-window-combination-limit", Fset_window_combination_limit, Sset_window_combination_limit, 2, 2, 0,