aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2001-10-25 15:31:10 +0000
committerRichard M. Stallman2001-10-25 15:31:10 +0000
commit2726b68bac279a726bd152f519433e71a9f2e4cf (patch)
tree7c8c953a478c4ef2812ac0aea7be8ece663a78e9
parent9cee54f87fcc3542c37587ac3b9432ae3294969f (diff)
downloademacs-2726b68bac279a726bd152f519433e71a9f2e4cf.tar.gz
emacs-2726b68bac279a726bd152f519433e71a9f2e4cf.zip
Explain how splitting windows relates to window-min-height
and window-min-width.
-rw-r--r--lispref/windows.texi10
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
150part of its former screen area. The rest is occupied by a newly created 150part of its former screen area. The rest is occupied by a newly created
151window which is returned as the value of this function. 151window which is returned as the value of this function.
152 152
153 If @var{horizontal} is non-@code{nil}, then @var{window} splits into 153If @var{horizontal} is non-@code{nil}, then @var{window} splits into
154two side by side windows. The original window @var{window} keeps the 154two side by side windows. The original window @var{window} keeps the
155leftmost @var{size} columns, and gives the rest of the columns to the 155leftmost @var{size} columns, and gives the rest of the columns to the
156new window. Otherwise, it splits into windows one above the other, and 156new 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
159left-hand or upper of the two, and the new window is the right-hand or 159left-hand or upper of the two, and the new window is the right-hand or
160lower. 160lower.
161 161
162 If @var{window} is omitted or @code{nil}, then the selected window is 162If @var{window} is omitted or @code{nil}, then the selected window is
163split. If @var{size} is omitted or @code{nil}, then @var{window} is 163split. If @var{size} is omitted or @code{nil}, then @var{window} is
164divided evenly into two parts. (If there is an odd line, it is 164divided evenly into two parts. (If there is an odd line, it is
165allocated to the new window.) When @code{split-window} is called 165allocated to the new window.) When @code{split-window} is called
166interactively, all its arguments are @code{nil}. 166interactively, all its arguments are @code{nil}.
167 167
168 The following example starts with one window on a screen that is 50 168If splitting would result in making a window that is smaller than
169@code{window-min-height} or @code{window-min-width}, the function
170signals an error and does not split the window at all.
171
172The following example starts with one window on a screen that is 50
169lines high by 80 columns wide; then the window is split. 173lines high by 80 columns wide; then the window is split.
170 174
171@smallexample 175@smallexample