Minor fixes in window handling code and docs.
authorMartin Rudalics <rudalics@gmx.at>
Tue, 13 Dec 2011 13:37:48 +0000 (14:37 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Tue, 13 Dec 2011 13:37:48 +0000 (14:37 +0100)
* 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.

doc/lispref/ChangeLog
doc/lispref/windows.texi
lisp/ChangeLog
lisp/window.el
src/ChangeLog
src/window.c

index 44d44e7..a03521d 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-13  Martin Rudalics  <rudalics@gmx.at>
+
+       * windows.texi (Splitting Windows): Use t instead of non-nil
+       when describing window-combination-resize.
+
 2011-12-05  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * text.texi (Special Properties): Warn against `intangible' properties
index 437b6db..df63115 100644 (file)
@@ -793,20 +793,20 @@ the new root window.
 
 @defopt window-combination-resize
 If this variable is @code{nil}, @code{split-window} can only split a
-window (denoted by @var{window}) if @var{window}'s screen area is
-large enough to accommodate both itself and the new window.  This is
-the default.
-
-If this variable is non-@code{nil}, @code{split-window} tries to
-resize all windows that are part of the same combination as
-@var{window}, in order to accommodate the new window.  In particular,
-this may allow @code{split-window} to succeed even if @var{window} is
-a fixed-size window or too small to ordinarily split.  Furthermore,
-subsequently resizing or deleting @var{window} may resize all other
-windows in its combination.
-
-This variable has no effect if @code{window-combination-limit} is
-non-@code{nil} (see below).
+window (denoted by @var{window}) if @var{window}'s screen area is large
+enough to accommodate both itself and the new window.
+
+If this variable is @code{t}, @code{split-window} tries to resize all
+windows that are part of the same combination as @var{window}, in order
+to accommodate the new window.  In particular, this may allow
+@code{split-window} to succeed even if @var{window} is a fixed-size
+window or too small to ordinarily split.  Furthermore, subsequently
+resizing or deleting @var{window} may resize all other windows in its
+combination.
+
+The default is @code{nil}.  Other values are reserved for future use.
+The value of this variable is ignored when
+@code{window-combination-limit} is non-@code{nil} (see below).
 @end defopt
 
   To illustrate the effect of @code{window-combination-resize},
@@ -857,9 +857,9 @@ If @code{window-combination-resize} is @code{nil}, splitting window
 @end smallexample
 
 @noindent
-If @code{window-combination-resize} is non-@code{nil}, splitting
-@code{W3} instead leaves all three live windows with approximately the
-same height:
+If @code{window-combination-resize} is @code{t}, splitting @code{W3}
+instead leaves all three live windows with approximately the same
+height:
 
 @smallexample
 @group
index 80eb82a..3153308 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-13  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (delete-other-windows): Use correct frame in call to
+       window-with-parameter.
+
 2011-12-12  Daniel Pfeiffer  <occitan@t-online.de>
 
        * progmodes/make-mode.el: Bring it up to date with makepp V2.0.
index 4838dfa..dcf7394 100644 (file)
@@ -2455,7 +2455,7 @@ window signal an error."
        (throw 'done (delete-other-windows atom-root)))
        ((eq window-side 'none)
        ;; Set side-main to the major non-side window.
-       (setq side-main (window-with-parameter 'window-side 'none nil t)))
+       (setq side-main (window-with-parameter 'window-side 'none frame t)))
        ((memq window-side window-sides)
        (error "Cannot make side window the only window")))
       ;; If WINDOW is the main non-side window, do nothing.
index 221ba91..5cdbd52 100644 (file)
@@ -1,3 +1,9 @@
+2011-12-13  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.c (Vwindow_combination_resize)
+       (Vwindow_combination_limit): Use t instead of non-nil in
+       doc-strings.
+
 2011-12-11  Kenichi Handa  <handa@m17n.org>
 
        * coding.c (Funencodable_char_position): Pay attention to the
index b908749..f007aaf 100644 (file)
@@ -6506,22 +6506,24 @@ frame to be redrawn only if it is a tty frame.  */);
   Vrecenter_redisplay = Qtty;
 
   DEFVAR_LISP ("window-combination-resize", Vwindow_combination_resize,
-              doc: /* Non-nil means resize window combinations proportionally.
+              doc: /* If t, 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.  Deleting and
 resizing a window preferably resizes one adjacent window only.
 
-If this variable is non-nil, splitting a window tries to get the space
+If this variable is t, 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.
 
+Other values are reserved for future use.
+
 This variable takes no effect if `window-combination-limit' is non-nil.  */);
   Vwindow_combination_resize = Qnil;
 
   DEFVAR_LISP ("window-combination-limit", Vwindow_combination_limit,
-              doc: /* Non-nil means splitting a window makes a new parent window.
+              doc: /* If t, splitting a window makes a new parent window.
 If this variable is nil, splitting a window will create a new parent
 window only if the window has no parent window or the window shall
 become a combination orthogonal to the one it is part of.