With prefix argument @var{kill} non-@code{nil}, it kills the buffer
instead of burying it. It calls the function @code{quit-restore-window}
described next to deal with the window and its buffer.
+
+@vindex quit-window-hook
+The functions in @code{quit-window-hook} are run before doing anything
+else.
@end deffn
@defun quit-restore-window &optional window bury-or-kill
elements of the list specified by @var{window}'s @code{quit-restore}
parameter (@pxref{Window Parameters}).
-@vindex quit-window-hook
-The functions in @code{quit-window-hook} are run before doing anything
-else.
-
The first element of the @code{quit-restore} parameter is one of the
symbols @code{window}, meaning that the window has been specially
created by @code{display-buffer}; @code{frame}, a separate frame has