aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-08-19 19:21:53 -0700
committerLars Ingebrigtsen2019-08-19 19:21:53 -0700
commitafdf679841ad31664d41e7debca7083632add0f8 (patch)
treeb48578fd132805405977b812c0b17fd09044c1ac /doc
parent221a3272ad4a1befb41dda2990d672782bc0257f (diff)
downloademacs-afdf679841ad31664d41e7debca7083632add0f8.tar.gz
emacs-afdf679841ad31664d41e7debca7083632add0f8.zip
Add a new hook: `quit-window-hook'
* doc/lispref/windows.texi (Quitting Windows): Mention in. * lisp/window.el (quit-restore-window): Run the new `quit-window-hook' before doing anything else (bug#9867). (quit-window): Note that the hook will be run in the doc string. * lisp/window.el (quit-window-hook): New variable.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/windows.texi4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index 1035739e2b0..157f004cf3f 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -4043,6 +4043,10 @@ the selected one. The function's behavior is determined by the four
4043elements of the list specified by @var{window}'s @code{quit-restore} 4043elements of the list specified by @var{window}'s @code{quit-restore}
4044parameter (@pxref{Window Parameters}). 4044parameter (@pxref{Window Parameters}).
4045 4045
4046@vindex quit-window-hook
4047The functions in @code{quit-window-hook} are run before doing anything
4048else.
4049
4046The first element of the @code{quit-restore} parameter is one of the 4050The first element of the @code{quit-restore} parameter is one of the
4047symbols @code{window}, meaning that the window has been specially 4051symbols @code{window}, meaning that the window has been specially
4048created by @code{display-buffer}; @code{frame}, a separate frame has 4052created by @code{display-buffer}; @code{frame}, a separate frame has