diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/window.c | 11 |
2 files changed, 14 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 0a277a0d67b..10c48b80f76 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2012-11-06 Dmitry Antipov <dmantipov@yandex.ru> | 1 | 2012-11-06 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 2 | ||
| 3 | * window.c (Fwindow_combination_limit): Revert to the only | ||
| 4 | required argument and adjust docstring as suggested in | ||
| 5 | http://lists.gnu.org/archive/html/emacs-diffs/2012-11/msg01082.html | ||
| 6 | by Martin Rudalics <rudalics@gmx.at>. | ||
| 7 | |||
| 8 | 2012-11-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9 | |||
| 3 | Widely used frame validity and checking functions. | 10 | Widely used frame validity and checking functions. |
| 4 | * frame.h (decode_live_frame, decode_any_frame): Add prototypes. | 11 | * frame.h (decode_live_frame, decode_any_frame): Add prototypes. |
| 5 | * frame.c (decode_live_frame, decode_any_frame): New functions. | 12 | * frame.c (decode_live_frame, decode_any_frame): New functions. |
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, |