aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDmitry Antipov2012-11-06 19:57:14 +0400
committerDmitry Antipov2012-11-06 19:57:14 +0400
commit72f94d4be8224bb7f51bef559c7565fa80724ca6 (patch)
tree2037c605f518e41b55ce4d34d57e169b99da47ea /src
parent3966138251393d7d8f3c33a2607e168c84a5a72f (diff)
downloademacs-72f94d4be8224bb7f51bef559c7565fa80724ca6.tar.gz
emacs-72f94d4be8224bb7f51bef559c7565fa80724ca6.zip
* window.c (Fwindow_combination_limit): Revert to the only
required argument and adjust docstring as suggested in http://lists.gnu.org/archive/html/emacs-diffs/2012-11/msg01082.html by Martin Rudalics <rudalics@gmx.at>.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/window.c11
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 @@
12012-11-06 Dmitry Antipov <dmantipov@yandex.ru> 12012-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
82012-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
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,