diff options
author | Martin Rudalics <rudalics@gmx.at> | 2011-11-17 11:27:56 +0100 |
---|---|---|
committer | Martin Rudalics <rudalics@gmx.at> | 2011-11-17 11:27:56 +0100 |
commit | a0c2d0aea21633b055e07ab980c13330c1f0d21d (patch) | |
tree | dcdbe9d30e68a9d76c24bde8b3ef00428c99fdf3 /src | |
parent | 4c36be58ca2b4777a5e7bf0d3e692cfd9fa1aea3 (diff) | |
download | emacs-a0c2d0aea21633b055e07ab980c13330c1f0d21d.tar.gz |
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/ChangeLog | 7 | ||||
-rw-r--r-- | src/window.c | 22 |
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 @@ +2011-11-17 Martin Rudalics <rudalics@gmx.at> + + * window.c (Vwindow_splits): Rename to + Vwindow_combination_resize. Suggested by Juri Linkov. + (Fsplit_window_internal): Use Vwindow_combination_resize instead + of Vwindow_splits. + 2011-11-16 Juanma Barranquero <lekktu@gmail.com> * 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. */) error ("Attempt to split minibuffer window"); else if (XINT (total_size) < (horflag ? 2 : 1)) error ("Size of new window too small (after split)"); - else if (!combination_limit && !NILP (Vwindow_splits)) - /* `window-splits' non-nil means try to resize OLD's siblings + else if (!combination_limit && !NILP (Vwindow_combination_resize)) + /* `window-combination-resize' non-nil means try to resize OLD's siblings proportionally. */ { p = XWINDOW (o->parent); @@ -6491,16 +6491,20 @@ will redraw the entire frame; the special value `tty' causes the frame to be redrawn only if it is a tty frame. */); Vrecenter_redisplay = Qtty; - DEFVAR_LISP ("window-splits", Vwindow_splits, - doc: /* Non-nil means splitting windows is handled specially. + DEFVAR_LISP ("window-combination-resize", Vwindow_combination_resize, + doc: /* Non-nil means resize window combinations proportionally. If this variable is nil, splitting a window gets the entire screen space -for displaying the new window from the window to split. If this -variable is non-nil, splitting a window may resize all windows in the -same combination. This also allows to split a window that is otherwise -too small or of fixed size. +for displaying the new window from the window to split. Deleting and +resizing a windwo preferably resizes one adjacent window only. + +If this variable is non-nil, splitting a window tries to get the space +proportionally from all windows in the same combination. This also +allows to split a window that is otherwise too small or of fixed size. +Resizing and deleting a window proportionally resize all windows in the +same combination. This variable takes no effect if `window-combination-limit' is non-nil. */); - Vwindow_splits = Qnil; + Vwindow_combination_resize = Qnil; DEFVAR_LISP ("window-combination-limit", Vwindow_combination_limit, doc: /* Non-nil means splitting a window makes a new parent window. |