diff options
| author | Kim F. Storm | 2005-10-04 14:26:20 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2005-10-04 14:26:20 +0000 |
| commit | 180ce0f4fd8f44732a7edaedc32768333631624b (patch) | |
| tree | d296089eee7b672ef49cd4dd343f31d02bb57dee | |
| parent | abc8ce502cd7b60261f8429a1e4d2384c5f1a2e8 (diff) | |
| download | emacs-180ce0f4fd8f44732a7edaedc32768333631624b.tar.gz emacs-180ce0f4fd8f44732a7edaedc32768333631624b.zip | |
(Window Split Tree): New section describing
new function window-split-tree function.
| -rw-r--r-- | lispref/windows.texi | 27 |
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 | |||
| 2167 | argument because it always uses the frame that @var{window} is on. | 2168 | argument 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 | ||
| 2176 | between all windows in one frame. | ||
| 2177 | |||
| 2178 | @defun split-window-tree &optional frame | ||
| 2179 | This function returns the window split tree for frame @var{frame}. | ||
| 2180 | If @var{frame} is omitted, the selected frame is used. | ||
| 2181 | |||
| 2182 | The return value is a list of the form @code{(@var{root} @var{mini})}, | ||
| 2183 | where @var{root} represents the window split tree of the frame's | ||
| 2184 | root window, and @var{mini} is the frame's minibuffer window. | ||
| 2185 | |||
| 2186 | If the root window is not split, @var{root} is the root window itself. | ||
| 2187 | Otherwise, @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, | ||
| 2189 | and @code{t} for a vertical split, @var{edges} gives the combined size and | ||
| 2190 | position of the subwindows in the split, and the rest of the elements | ||
| 2191 | are the subwindows in the split. Each of the subwindows may again be | ||
| 2192 | a 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})} | ||
| 2194 | similar 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 |