diff options
| author | Eli Zaretskii | 2017-10-21 10:43:30 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2017-10-21 10:43:30 +0300 |
| commit | 4587d8e0ef3302e9a2d99e2981897537eb320168 (patch) | |
| tree | c5cca88e8558678b900d63af33ec1f9c3a7548e3 | |
| parent | 868eb74f910eb67a5e74ebb1867ebcfbfced55c4 (diff) | |
| download | emacs-4587d8e0ef3302e9a2d99e2981897537eb320168.tar.gz emacs-4587d8e0ef3302e9a2d99e2981897537eb320168.zip | |
Document 'minibuffer-with-setup-hook'
* doc/lispref/minibuf.texi (Minibuffer Misc): Document
minibuffer-with-setup-hook. (Bug#28877)
| -rw-r--r-- | doc/lispref/minibuf.texi | 13 |
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 | ||
| 2411 | This macro executes @var{body} after arranging for the specified | ||
| 2412 | @var{function} to be called via @code{minibuffer-setup-hook}. By | ||
| 2413 | default, @var{function} is called before the other functions in the | ||
| 2414 | @code{minibuffer-setup-hook} list, but if @var{function} is of the | ||
| 2415 | form @w{@code{(:append @var{func})}}, @var{func} will be called | ||
| 2416 | @emph{after} the other hook functions. | ||
| 2417 | |||
| 2418 | The @var{body} forms should not use the minibuffer more than once. If | ||
| 2419 | the minibuffer is re-entered recursively, @var{function} will only be | ||
| 2420 | called once, for the outermost use of the minibuffer. | ||
| 2421 | @end defmac | ||
| 2422 | |||
| 2410 | @defvar minibuffer-exit-hook | 2423 | @defvar minibuffer-exit-hook |
| 2411 | This is a normal hook that is run whenever the minibuffer is exited. | 2424 | This is a normal hook that is run whenever the minibuffer is exited. |
| 2412 | @xref{Hooks}. | 2425 | @xref{Hooks}. |