diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 11 |
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 | ||
| 605 | DEFUN ("window-combination-limit", Fwindow_combination_limit, Swindow_combination_limit, 0, 1, 0, | 605 | DEFUN ("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. |
| 607 | WINDOW must be a valid window and defaults to the selected one. | ||
| 608 | If the return value is nil, child windows of WINDOW can be recombined with | 607 | If the return value is nil, child windows of WINDOW can be recombined with |
| 609 | WINDOW's siblings. A return value of t means that child windows of | 608 | WINDOW's siblings. A return value of t means that child windows of |
| 610 | WINDOW are never \(re-)combined with WINDOW's siblings. */) | 609 | WINDOW are never \(re-)combined with WINDOW's siblings. |
| 610 | |||
| 611 | WINDOW must be a valid window. The return value is meaningful for | ||
| 612 | internal 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 | ||
| 616 | DEFUN ("set-window-combination-limit", Fset_window_combination_limit, Sset_window_combination_limit, 2, 2, 0, | 619 | DEFUN ("set-window-combination-limit", Fset_window_combination_limit, Sset_window_combination_limit, 2, 2, 0, |