aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2011-12-13 14:37:48 +0100
committerMartin Rudalics2011-12-13 14:37:48 +0100
commit454592a615ac4d86a6ce594945487642be5013d7 (patch)
tree44ff04a72dfdb9acf478954bafcb53eea3c9db2b
parent87393f2618610b11f406db76f41677475bec41cc (diff)
downloademacs-454592a615ac4d86a6ce594945487642be5013d7.tar.gz
emacs-454592a615ac4d86a6ce594945487642be5013d7.zip
Minor fixes in window handling code and docs.
* window.c (Vwindow_combination_resize) (Vwindow_combination_limit): Use t instead of non-nil in doc-strings. * window.el (delete-other-windows): Use correct frame in call to window-with-parameter. * windows.texi (Splitting Windows): Use t instead of non-nil when describing window-combination-resize.
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/windows.texi34
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/window.el2
-rw-r--r--src/ChangeLog6
-rw-r--r--src/window.c8
6 files changed, 39 insertions, 21 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 44d44e7528c..a03521d449b 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12011-12-13 Martin Rudalics <rudalics@gmx.at>
2
3 * windows.texi (Splitting Windows): Use t instead of non-nil
4 when describing window-combination-resize.
5
12011-12-05 Stefan Monnier <monnier@iro.umontreal.ca> 62011-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * text.texi (Special Properties): Warn against `intangible' properties 8 * text.texi (Special Properties): Warn against `intangible' properties
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index 437b6db8d58..df631158689 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -793,20 +793,20 @@ the new root window.
793 793
794@defopt window-combination-resize 794@defopt window-combination-resize
795If this variable is @code{nil}, @code{split-window} can only split a 795If this variable is @code{nil}, @code{split-window} can only split a
796window (denoted by @var{window}) if @var{window}'s screen area is 796window (denoted by @var{window}) if @var{window}'s screen area is large
797large enough to accommodate both itself and the new window. This is 797enough to accommodate both itself and the new window.
798the default. 798
799 799If this variable is @code{t}, @code{split-window} tries to resize all
800If this variable is non-@code{nil}, @code{split-window} tries to 800windows that are part of the same combination as @var{window}, in order
801resize all windows that are part of the same combination as 801to accommodate the new window. In particular, this may allow
802@var{window}, in order to accommodate the new window. In particular, 802@code{split-window} to succeed even if @var{window} is a fixed-size
803this may allow @code{split-window} to succeed even if @var{window} is 803window or too small to ordinarily split. Furthermore, subsequently
804a fixed-size window or too small to ordinarily split. Furthermore, 804resizing or deleting @var{window} may resize all other windows in its
805subsequently resizing or deleting @var{window} may resize all other 805combination.
806windows in its combination. 806
807 807The default is @code{nil}. Other values are reserved for future use.
808This variable has no effect if @code{window-combination-limit} is 808The value of this variable is ignored when
809non-@code{nil} (see below). 809@code{window-combination-limit} is non-@code{nil} (see below).
810@end defopt 810@end defopt
811 811
812 To illustrate the effect of @code{window-combination-resize}, 812 To illustrate the effect of @code{window-combination-resize},
@@ -857,9 +857,9 @@ If @code{window-combination-resize} is @code{nil}, splitting window
857@end smallexample 857@end smallexample
858 858
859@noindent 859@noindent
860If @code{window-combination-resize} is non-@code{nil}, splitting 860If @code{window-combination-resize} is @code{t}, splitting @code{W3}
861@code{W3} instead leaves all three live windows with approximately the 861instead leaves all three live windows with approximately the same
862same height: 862height:
863 863
864@smallexample 864@smallexample
865@group 865@group
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 80eb82a521d..31533082b77 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-12-13 Martin Rudalics <rudalics@gmx.at>
2
3 * window.el (delete-other-windows): Use correct frame in call to
4 window-with-parameter.
5
12011-12-12 Daniel Pfeiffer <occitan@t-online.de> 62011-12-12 Daniel Pfeiffer <occitan@t-online.de>
2 7
3 * progmodes/make-mode.el: Bring it up to date with makepp V2.0. 8 * progmodes/make-mode.el: Bring it up to date with makepp V2.0.
diff --git a/lisp/window.el b/lisp/window.el
index 4838dfa7969..dcf7394b204 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -2455,7 +2455,7 @@ window signal an error."
2455 (throw 'done (delete-other-windows atom-root))) 2455 (throw 'done (delete-other-windows atom-root)))
2456 ((eq window-side 'none) 2456 ((eq window-side 'none)
2457 ;; Set side-main to the major non-side window. 2457 ;; Set side-main to the major non-side window.
2458 (setq side-main (window-with-parameter 'window-side 'none nil t))) 2458 (setq side-main (window-with-parameter 'window-side 'none frame t)))
2459 ((memq window-side window-sides) 2459 ((memq window-side window-sides)
2460 (error "Cannot make side window the only window"))) 2460 (error "Cannot make side window the only window")))
2461 ;; If WINDOW is the main non-side window, do nothing. 2461 ;; If WINDOW is the main non-side window, do nothing.
diff --git a/src/ChangeLog b/src/ChangeLog
index 221ba913a80..5cdbd528a2e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12011-12-13 Martin Rudalics <rudalics@gmx.at>
2
3 * window.c (Vwindow_combination_resize)
4 (Vwindow_combination_limit): Use t instead of non-nil in
5 doc-strings.
6
12011-12-11 Kenichi Handa <handa@m17n.org> 72011-12-11 Kenichi Handa <handa@m17n.org>
2 8
3 * coding.c (Funencodable_char_position): Pay attention to the 9 * coding.c (Funencodable_char_position): Pay attention to the
diff --git a/src/window.c b/src/window.c
index b908749ea4a..f007aaf52cd 100644
--- a/src/window.c
+++ b/src/window.c
@@ -6506,22 +6506,24 @@ frame to be redrawn only if it is a tty frame. */);
6506 Vrecenter_redisplay = Qtty; 6506 Vrecenter_redisplay = Qtty;
6507 6507
6508 DEFVAR_LISP ("window-combination-resize", Vwindow_combination_resize, 6508 DEFVAR_LISP ("window-combination-resize", Vwindow_combination_resize,
6509 doc: /* Non-nil means resize window combinations proportionally. 6509 doc: /* If t, resize window combinations proportionally.
6510If this variable is nil, splitting a window gets the entire screen space 6510If this variable is nil, splitting a window gets the entire screen space
6511for displaying the new window from the window to split. Deleting and 6511for displaying the new window from the window to split. Deleting and
6512resizing a window preferably resizes one adjacent window only. 6512resizing a window preferably resizes one adjacent window only.
6513 6513
6514If this variable is non-nil, splitting a window tries to get the space 6514If this variable is t, splitting a window tries to get the space
6515proportionally from all windows in the same combination. This also 6515proportionally from all windows in the same combination. This also
6516allows to split a window that is otherwise too small or of fixed size. 6516allows to split a window that is otherwise too small or of fixed size.
6517Resizing and deleting a window proportionally resize all windows in the 6517Resizing and deleting a window proportionally resize all windows in the
6518same combination. 6518same combination.
6519 6519
6520Other values are reserved for future use.
6521
6520This variable takes no effect if `window-combination-limit' is non-nil. */); 6522This variable takes no effect if `window-combination-limit' is non-nil. */);
6521 Vwindow_combination_resize = Qnil; 6523 Vwindow_combination_resize = Qnil;
6522 6524
6523 DEFVAR_LISP ("window-combination-limit", Vwindow_combination_limit, 6525 DEFVAR_LISP ("window-combination-limit", Vwindow_combination_limit,
6524 doc: /* Non-nil means splitting a window makes a new parent window. 6526 doc: /* If t, splitting a window makes a new parent window.
6525If this variable is nil, splitting a window will create a new parent 6527If this variable is nil, splitting a window will create a new parent
6526window only if the window has no parent window or the window shall 6528window only if the window has no parent window or the window shall
6527become a combination orthogonal to the one it is part of. 6529become a combination orthogonal to the one it is part of.