aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2005-10-04 14:26:20 +0000
committerKim F. Storm2005-10-04 14:26:20 +0000
commit180ce0f4fd8f44732a7edaedc32768333631624b (patch)
treed296089eee7b672ef49cd4dd343f31d02bb57dee
parentabc8ce502cd7b60261f8429a1e4d2384c5f1a2e8 (diff)
downloademacs-180ce0f4fd8f44732a7edaedc32768333631624b.tar.gz
emacs-180ce0f4fd8f44732a7edaedc32768333631624b.zip
(Window Split Tree): New section describing
new function window-split-tree function.
-rw-r--r--lispref/windows.texi27
1 files changed, 27 insertions, 0 deletions
diff --git a/lispref/windows.texi b/lispref/windows.texi
index 01e33f1c0d4..c806577c4b8 100644
--- a/lispref/windows.texi
+++ b/lispref/windows.texi
@@ -30,6 +30,7 @@ displayed in windows.
30* Size of Window:: Accessing the size of a window. 30* Size of Window:: Accessing the size of a window.
31* Resizing Windows:: Changing the size of a window. 31* Resizing Windows:: Changing the size of a window.
32* Coordinates and Windows:: Converting coordinates to windows. 32* Coordinates and Windows:: Converting coordinates to windows.
33* Window Split Tree:: The layout and sizes of all windows in a frame.
33* Window Configurations:: Saving and restoring the state of the screen. 34* Window Configurations:: Saving and restoring the state of the screen.
34* Window Hooks:: Hooks for scrolling, window size changes, 35* Window Hooks:: Hooks for scrolling, window size changes,
35 redisplay going past a certain point, 36 redisplay going past a certain point,
@@ -2167,6 +2168,32 @@ The function @code{coordinates-in-window-p} does not require a frame as
2167argument because it always uses the frame that @var{window} is on. 2168argument because it always uses the frame that @var{window} is on.
2168@end defun 2169@end defun
2169 2170
2171@node Window Split Tree
2172@section The Window Split Tree
2173@cindex window split tree
2174
2175 A @dfn{window split tree} specifies the layout, size, and relationship
2176between all windows in one frame.
2177
2178@defun split-window-tree &optional frame
2179This function returns the window split tree for frame @var{frame}.
2180If @var{frame} is omitted, the selected frame is used.
2181
2182The return value is a list of the form @code{(@var{root} @var{mini})},
2183where @var{root} represents the window split tree of the frame's
2184root window, and @var{mini} is the frame's minibuffer window.
2185
2186If the root window is not split, @var{root} is the root window itself.
2187Otherwise, @var{root} is a list @code{(@var{dir} @var{edges} @var{w1}
2188@var{w2} ...)} where @var{dir} is @code{nil} for a horisontal split,
2189and @code{t} for a vertical split, @var{edges} gives the combined size and
2190position of the subwindows in the split, and the rest of the elements
2191are the subwindows in the split. Each of the subwindows may again be
2192a window or a list representing a window split, and so on. The
2193@var{edges} element is a list @code{(@var{left}@var{ top}@var{ right}@var{ bottom})}
2194similar to the value returned by @code{window-edges}.
2195@end defun
2196
2170@node Window Configurations 2197@node Window Configurations
2171@section Window Configurations 2198@section Window Configurations
2172@cindex window configurations 2199@cindex window configurations