diff options
| author | Martin Rudalics | 2011-11-09 10:36:05 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2011-11-09 10:36:05 +0100 |
| commit | 2cffd68198c4d574f073ab238dc12b1221005eab (patch) | |
| tree | 213580d2d682f86545ae840bb6cc1a91ca481ff0 /doc | |
| parent | f6f6d7e7b144d4fc5955b91de2c802a19f3bf843 (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/windows.texi | 17 |
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 @@ | |||
| 1 | 2011-11-09 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * windows.texi (Resizing Windows): Rewrite documentation of | ||
| 4 | window-resizable. | ||
| 5 | |||
| 1 | 2011-11-09 Chong Yidong <cyd@gnu.org> | 6 | 2011-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}). | |||
| 553 | arguments. Resizing an internal window causes its child windows to be | 553 | arguments. Resizing an internal window causes its child windows to be |
| 554 | resized to fit the same space. | 554 | resized 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 |
| 557 | This function returns @var{delta} if the size of @var{window} can be | 557 | This function returns @var{delta} if the size of @var{window} can be |
| 558 | changed vertically by @var{delta} lines. If the optional argument | 558 | changed 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 | ||
| 563 | If @var{window} is @code{nil}, it defaults to the selected window. | 563 | If @var{window} is @code{nil}, it defaults to the selected window. |
| 564 | 564 | ||
| 565 | A positive value of @var{delta} enlarges the window by that number of | 565 | A positive value of @var{delta} means to check whether the window can be |
| 566 | lines or columns; a negative value of @var{delta} shrinks it. If | 566 | enlarged 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 |
| 568 | cannot be resized. | 568 | lines or columns. If @var{delta} is non-zero, a return value of 0 means |
| 569 | that the window cannot be resized. | ||
| 569 | 570 | ||
| 570 | Normally, the variables @code{window-min-height} and | 571 | Normally, 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 | |||
| 577 | of a header (if any), a mode line, plus a text area one line tall; and | 578 | of a header (if any), a mode line, plus a text area one line tall; and |
| 578 | a minimum-width window as one consisting of fringes, margins, and | 579 | a minimum-width window as one consisting of fringes, margins, and |
| 579 | scroll bar (if any), plus a text area two columns wide. | 580 | scroll bar (if any), plus a text area two columns wide. |
| 580 | |||
| 581 | If the optional argument @var{noup} is non-@code{nil}, this function | ||
| 582 | considers 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 |