aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMartin Rudalics2011-11-09 10:36:05 +0100
committerMartin Rudalics2011-11-09 10:36:05 +0100
commit2cffd68198c4d574f073ab238dc12b1221005eab (patch)
tree213580d2d682f86545ae840bb6cc1a91ca481ff0 /doc
parentf6f6d7e7b144d4fc5955b91de2c802a19f3bf843 (diff)
downloademacs-2cffd68198c4d574f073ab238dc12b1221005eab.tar.gz
emacs-2cffd68198c4d574f073ab238dc12b1221005eab.zip
Rewrite window-resizable.
* window.el (window-size-fixed-p): Rewrite doc-string. (window-resizable-p): Rename to window--resizable-p. Update callers. (window--resizable): New function. Make all callers of window-resizable call window--resizable instead. (window-resizable): Rewrite in terms of window--resizable. * windows.texi (Resizing Windows): Rewrite documentation of window-resizable.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/windows.texi17
2 files changed, 11 insertions, 11 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 2b1e210fc73..cbe016ac96d 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12011-11-09 Martin Rudalics <rudalics@gmx.at>
2
3 * windows.texi (Resizing Windows): Rewrite documentation of
4 window-resizable.
5
12011-11-09 Chong Yidong <cyd@gnu.org> 62011-11-09 Chong Yidong <cyd@gnu.org>
2 7
3 * windows.texi (Splitting Windows): Simplify example. 8 * windows.texi (Splitting Windows): Simplify example.
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index 17483d4c0ed..52ac5a53900 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -553,7 +553,7 @@ changed except by resizing the frame (@pxref{Size and Position}).
553arguments. Resizing an internal window causes its child windows to be 553arguments. Resizing an internal window causes its child windows to be
554resized to fit the same space. 554resized to fit the same space.
555 555
556@defun window-resizable window delta &optional horizontal ignore side noup nodown 556@defun window-resizable window delta &optional horizontal ignore
557This function returns @var{delta} if the size of @var{window} can be 557This function returns @var{delta} if the size of @var{window} can be
558changed vertically by @var{delta} lines. If the optional argument 558changed vertically by @var{delta} lines. If the optional argument
559@var{horizontal} is non-@code{nil}, it instead returns @var{delta} if 559@var{horizontal} is non-@code{nil}, it instead returns @var{delta} if
@@ -562,10 +562,11 @@ does not actually change the window size.
562 562
563If @var{window} is @code{nil}, it defaults to the selected window. 563If @var{window} is @code{nil}, it defaults to the selected window.
564 564
565A positive value of @var{delta} enlarges the window by that number of 565A positive value of @var{delta} means to check whether the window can be
566lines or columns; a negative value of @var{delta} shrinks it. If 566enlarged by that number of lines or columns; a negative value of
567@var{delta} is non-zero, a return value of 0 means that the window 567@var{delta} means to check whether the window can be shrunk by that many
568cannot be resized. 568lines or columns. If @var{delta} is non-zero, a return value of 0 means
569that the window cannot be resized.
569 570
570Normally, the variables @code{window-min-height} and 571Normally, the variables @code{window-min-height} and
571@code{window-min-width} specify the smallest allowable window size. 572@code{window-min-width} specify the smallest allowable window size.
@@ -577,12 +578,6 @@ Instead, it considers the minimum-height window to be one consisting
577of a header (if any), a mode line, plus a text area one line tall; and 578of a header (if any), a mode line, plus a text area one line tall; and
578a minimum-width window as one consisting of fringes, margins, and 579a minimum-width window as one consisting of fringes, margins, and
579scroll bar (if any), plus a text area two columns wide. 580scroll bar (if any), plus a text area two columns wide.
580
581If the optional argument @var{noup} is non-@code{nil}, this function
582considers a resize operation that does not alter the window parent of
583@var{window}, only its siblings. If the optional argument
584@var{nodown} is non-@code{nil}, it does not attempt to check whether
585@var{window} itself and its child windows can be resized.
586@end defun 581@end defun
587 582
588@defun window-resize window delta &optional horizontal ignore 583@defun window-resize window delta &optional horizontal ignore