diff options
| author | Lars Ingebrigtsen | 2019-08-19 19:21:53 -0700 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-08-19 19:21:53 -0700 |
| commit | afdf679841ad31664d41e7debca7083632add0f8 (patch) | |
| tree | b48578fd132805405977b812c0b17fd09044c1ac /doc | |
| parent | 221a3272ad4a1befb41dda2990d672782bc0257f (diff) | |
| download | emacs-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.texi | 4 |
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 | |||
| 4043 | elements of the list specified by @var{window}'s @code{quit-restore} | 4043 | elements of the list specified by @var{window}'s @code{quit-restore} |
| 4044 | parameter (@pxref{Window Parameters}). | 4044 | parameter (@pxref{Window Parameters}). |
| 4045 | 4045 | ||
| 4046 | @vindex quit-window-hook | ||
| 4047 | The functions in @code{quit-window-hook} are run before doing anything | ||
| 4048 | else. | ||
| 4049 | |||
| 4046 | The first element of the @code{quit-restore} parameter is one of the | 4050 | The first element of the @code{quit-restore} parameter is one of the |
| 4047 | symbols @code{window}, meaning that the window has been specially | 4051 | symbols @code{window}, meaning that the window has been specially |
| 4048 | created by @code{display-buffer}; @code{frame}, a separate frame has | 4052 | created by @code{display-buffer}; @code{frame}, a separate frame has |