aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/lispref/minibuf.texi13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi
index afd44b7dfe4..1ece8996008 100644
--- a/doc/lispref/minibuf.texi
+++ b/doc/lispref/minibuf.texi
@@ -2407,6 +2407,19 @@ This is a normal hook that is run whenever the minibuffer is entered.
2407@xref{Hooks}. 2407@xref{Hooks}.
2408@end defvar 2408@end defvar
2409 2409
2410@defmac minibuffer-with-setup-hook function &rest body
2411This macro executes @var{body} after arranging for the specified
2412@var{function} to be called via @code{minibuffer-setup-hook}. By
2413default, @var{function} is called before the other functions in the
2414@code{minibuffer-setup-hook} list, but if @var{function} is of the
2415form @w{@code{(:append @var{func})}}, @var{func} will be called
2416@emph{after} the other hook functions.
2417
2418The @var{body} forms should not use the minibuffer more than once. If
2419the minibuffer is re-entered recursively, @var{function} will only be
2420called once, for the outermost use of the minibuffer.
2421@end defmac
2422
2410@defvar minibuffer-exit-hook 2423@defvar minibuffer-exit-hook
2411This is a normal hook that is run whenever the minibuffer is exited. 2424This is a normal hook that is run whenever the minibuffer is exited.
2412@xref{Hooks}. 2425@xref{Hooks}.