diff options
| author | Richard M. Stallman | 2001-10-25 15:31:10 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-10-25 15:31:10 +0000 |
| commit | 2726b68bac279a726bd152f519433e71a9f2e4cf (patch) | |
| tree | 7c8c953a478c4ef2812ac0aea7be8ece663a78e9 | |
| parent | 9cee54f87fcc3542c37587ac3b9432ae3294969f (diff) | |
| download | emacs-2726b68bac279a726bd152f519433e71a9f2e4cf.tar.gz emacs-2726b68bac279a726bd152f519433e71a9f2e4cf.zip | |
Explain how splitting windows relates to window-min-height
and window-min-width.
| -rw-r--r-- | lispref/windows.texi | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lispref/windows.texi b/lispref/windows.texi index b1f18fa7857..f7253f05be9 100644 --- a/lispref/windows.texi +++ b/lispref/windows.texi | |||
| @@ -150,7 +150,7 @@ window @var{window} remains the selected window, but occupies only | |||
| 150 | part of its former screen area. The rest is occupied by a newly created | 150 | part of its former screen area. The rest is occupied by a newly created |
| 151 | window which is returned as the value of this function. | 151 | window which is returned as the value of this function. |
| 152 | 152 | ||
| 153 | If @var{horizontal} is non-@code{nil}, then @var{window} splits into | 153 | If @var{horizontal} is non-@code{nil}, then @var{window} splits into |
| 154 | two side by side windows. The original window @var{window} keeps the | 154 | two side by side windows. The original window @var{window} keeps the |
| 155 | leftmost @var{size} columns, and gives the rest of the columns to the | 155 | leftmost @var{size} columns, and gives the rest of the columns to the |
| 156 | new window. Otherwise, it splits into windows one above the other, and | 156 | new window. Otherwise, it splits into windows one above the other, and |
| @@ -159,13 +159,17 @@ lines to the new window. The original window is therefore the | |||
| 159 | left-hand or upper of the two, and the new window is the right-hand or | 159 | left-hand or upper of the two, and the new window is the right-hand or |
| 160 | lower. | 160 | lower. |
| 161 | 161 | ||
| 162 | If @var{window} is omitted or @code{nil}, then the selected window is | 162 | If @var{window} is omitted or @code{nil}, then the selected window is |
| 163 | split. If @var{size} is omitted or @code{nil}, then @var{window} is | 163 | split. If @var{size} is omitted or @code{nil}, then @var{window} is |
| 164 | divided evenly into two parts. (If there is an odd line, it is | 164 | divided evenly into two parts. (If there is an odd line, it is |
| 165 | allocated to the new window.) When @code{split-window} is called | 165 | allocated to the new window.) When @code{split-window} is called |
| 166 | interactively, all its arguments are @code{nil}. | 166 | interactively, all its arguments are @code{nil}. |
| 167 | 167 | ||
| 168 | The following example starts with one window on a screen that is 50 | 168 | If splitting would result in making a window that is smaller than |
| 169 | @code{window-min-height} or @code{window-min-width}, the function | ||
| 170 | signals an error and does not split the window at all. | ||
| 171 | |||
| 172 | The following example starts with one window on a screen that is 50 | ||
| 169 | lines high by 80 columns wide; then the window is split. | 173 | lines high by 80 columns wide; then the window is split. |
| 170 | 174 | ||
| 171 | @smallexample | 175 | @smallexample |