aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Rudalics2011-11-17 11:27:56 +0100
committerMartin Rudalics2011-11-17 11:27:56 +0100
commita0c2d0aea21633b055e07ab980c13330c1f0d21d (patch)
treedcdbe9d30e68a9d76c24bde8b3ef00428c99fdf3 /src
parent4c36be58ca2b4777a5e7bf0d3e692cfd9fa1aea3 (diff)
downloademacs-a0c2d0aea21633b055e07ab980c13330c1f0d21d.tar.gz
emacs-a0c2d0aea21633b055e07ab980c13330c1f0d21d.zip
Rename window-splits to window-combination-resize.
* window.c (Vwindow_splits): Rename to Vwindow_combination_resize. Suggested by Juri Linkov. (Fsplit_window_internal): Use Vwindow_combination_resize instead of Vwindow_splits. * window.el (window-resize, delete-window, split-window): Replace window-splits by window-combination-resize. * cus-start.el (window-splits): Replace by window-combination-resize. * windows.texi (Resizing Windows, Splitting Windows) (Deleting Windows): Use term window-combination-resize instead of window-splits.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/window.c22
2 files changed, 20 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index bc82064afb7..bd5f9e4dd02 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12011-11-17 Martin Rudalics <rudalics@gmx.at>
2
3 * window.c (Vwindow_splits): Rename to
4 Vwindow_combination_resize. Suggested by Juri Linkov.
5 (Fsplit_window_internal): Use Vwindow_combination_resize instead
6 of Vwindow_splits.
7
12011-11-16 Juanma Barranquero <lekktu@gmail.com> 82011-11-16 Juanma Barranquero <lekktu@gmail.com>
2 9
3 * nsfns.m (Fns_font_name): 10 * nsfns.m (Fns_font_name):
diff --git a/src/window.c b/src/window.c
index b34101c2f91..c8f0f169e5d 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3702,8 +3702,8 @@ set correctly. See the code of `split-window' for how this is done. */)
3702 error ("Attempt to split minibuffer window"); 3702 error ("Attempt to split minibuffer window");
3703 else if (XINT (total_size) < (horflag ? 2 : 1)) 3703 else if (XINT (total_size) < (horflag ? 2 : 1))
3704 error ("Size of new window too small (after split)"); 3704 error ("Size of new window too small (after split)");
3705 else if (!combination_limit && !NILP (Vwindow_splits)) 3705 else if (!combination_limit && !NILP (Vwindow_combination_resize))
3706 /* `window-splits' non-nil means try to resize OLD's siblings 3706 /* `window-combination-resize' non-nil means try to resize OLD's siblings
3707 proportionally. */ 3707 proportionally. */
3708 { 3708 {
3709 p = XWINDOW (o->parent); 3709 p = XWINDOW (o->parent);
@@ -6491,16 +6491,20 @@ will redraw the entire frame; the special value `tty' causes the
6491frame to be redrawn only if it is a tty frame. */); 6491frame to be redrawn only if it is a tty frame. */);
6492 Vrecenter_redisplay = Qtty; 6492 Vrecenter_redisplay = Qtty;
6493 6493
6494 DEFVAR_LISP ("window-splits", Vwindow_splits, 6494 DEFVAR_LISP ("window-combination-resize", Vwindow_combination_resize,
6495 doc: /* Non-nil means splitting windows is handled specially. 6495 doc: /* Non-nil means resize window combinations proportionally.
6496If this variable is nil, splitting a window gets the entire screen space 6496If this variable is nil, splitting a window gets the entire screen space
6497for displaying the new window from the window to split. If this 6497for displaying the new window from the window to split. Deleting and
6498variable is non-nil, splitting a window may resize all windows in the 6498resizing a windwo preferably resizes one adjacent window only.
6499same combination. This also allows to split a window that is otherwise 6499
6500too small or of fixed size. 6500If this variable is non-nil, splitting a window tries to get the space
6501proportionally from all windows in the same combination. This also
6502allows to split a window that is otherwise too small or of fixed size.
6503Resizing and deleting a window proportionally resize all windows in the
6504same combination.
6501 6505
6502This variable takes no effect if `window-combination-limit' is non-nil. */); 6506This variable takes no effect if `window-combination-limit' is non-nil. */);
6503 Vwindow_splits = Qnil; 6507 Vwindow_combination_resize = Qnil;
6504 6508
6505 DEFVAR_LISP ("window-combination-limit", Vwindow_combination_limit, 6509 DEFVAR_LISP ("window-combination-limit", Vwindow_combination_limit,
6506 doc: /* Non-nil means splitting a window makes a new parent window. 6510 doc: /* Non-nil means splitting a window makes a new parent window.