aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGlenn Morris2018-11-20 09:38:42 -0800
committerGlenn Morris2018-11-20 09:38:42 -0800
commitbb7b75d7110c7a46407aa4efc33446ace0cba631 (patch)
tree110ea4c557a39818da2ed8ebcea40f237b48a0f6 /doc
parente1b2c21b431accc397219b432a76a716acc6dbc2 (diff)
parent070e82b96bfadb5a3622607a8c5c97c127ec62db (diff)
downloademacs-bb7b75d7110c7a46407aa4efc33446ace0cba631.tar.gz
emacs-bb7b75d7110c7a46407aa4efc33446ace0cba631.zip
Merge from origin/emacs-26
070e82b ; * src/window.c (window_scroll): Improve commentary. 60457d7 Improve documentation of the window tree ea1a014 Fix window scrolling on TTY frames when there's no mode line df7ed10 Fix decoding XML files encoded in ISO-8859 7851ae8 (tag: emacs-26.1.90) ; ChangeLog.3 update 1958808 * etc/AUTHORS: Update. 7252507 Fix description of some window hooks 88762b4 Run 'window--adjust-process-windows' when frame size changes ... d6542ea Avoid errors in zone.el when there's overlay at EOB
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/windows.texi45
1 files changed, 22 insertions, 23 deletions
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index af497cf6af9..b86bccab202 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -198,12 +198,13 @@ relationships between live windows. The root node of a window tree is
198called the @dfn{root window}. It can be either a live window (if the 198called the @dfn{root window}. It can be either a live window (if the
199frame has just one window), or an internal window. 199frame has just one window), or an internal window.
200 200
201 A minibuffer window (@pxref{Minibuffer Windows}) is not part of its 201 A minibuffer window (@pxref{Minibuffer Windows}) that is not alone
202frame's window tree unless the frame is a minibuffer-only frame. 202on its frame does not have a parent window, so it strictly speaking is
203Nonetheless, most of the functions in this section accept the 203not part of its frame's window tree. Nonetheless, it is a sibling
204minibuffer window as an argument. Also, the function 204window of the frame's root window, and thus can be reached via
205@code{window-tree} described at the end of this section lists the 205@code{window-next-sibling}. Also, the function @code{window-tree}
206minibuffer window alongside the actual window tree. 206described at the end of this section lists the minibuffer window
207alongside the actual window tree.
207 208
208@defun frame-root-window &optional frame-or-window 209@defun frame-root-window &optional frame-or-window
209This function returns the root window for @var{frame-or-window}. The 210This function returns the root window for @var{frame-or-window}. The
@@ -6037,26 +6038,24 @@ size and has to check out these windows by using the method described
6037in the previous paragraph. 6038in the previous paragraph.
6038 6039
6039These function are usually only called when at least one window was 6040These function are usually only called when at least one window was
6040added or has changed size since the last time this hook was run for the 6041added or has changed size since the last time this hook was run for
6041associated frame. In some rare cases this hook also runs when a window 6042the associated frame. In some rare cases this hook also runs when a
6042that was added intermittently has been deleted afterwards. In these 6043window that was added intermittently has been deleted afterwards. In
6043cases none of the windows on the frame will appear to have changed its 6044these cases none of the windows on the frame will appear to have
6044size. 6045changed its size.
6045
6046You may use @code{save-selected-window} in these functions
6047(@pxref{Selecting Windows}). However, do not use
6048@code{save-window-excursion} (@pxref{Window Configurations}); exiting
6049that macro counts as a size change, which would cause these functions to
6050be called again.
6051@end defvar 6046@end defvar
6052 6047
6053@defvar window-configuration-change-hook 6048@defvar window-configuration-change-hook
6054A normal hook that is run every time the window configuration of a frame 6049A normal hook that is run every time the window configuration of a
6055changes. Window configuration changes include splitting and deleting 6050frame changes. Window configuration changes include splitting and
6056windows, and the display of a different buffer in a window. Resizing the 6051deleting windows, and the display of a different buffer in a window.
6057frame or individual windows do not count as configuration changes. Use 6052
6058@code{window-size-change-functions}, see above, when you want to track 6053The hook can be also used for tracking changes of window sizes. It
6059size changes that are not caused by the deletion or creation of windows. 6054is, however, not run when the size of a frame changes or automatic
6055resizing of a minibuffer window (@pxref{Minibuffer Windows}) changes
6056the size of another window. As a rule, adding a function to
6057@code{window-size-change-functions}, see above, is the recommended way
6058for reliably tracking size changes of any window.
6060 6059
6061The buffer-local value of this hook is run once for each window on the 6060The buffer-local value of this hook is run once for each window on the
6062affected frame, with the relevant window selected and its buffer 6061affected frame, with the relevant window selected and its buffer