Commit 9bbe0828 authored by Chong Yidong's avatar Chong Yidong
Browse files

* lisp/files.el (minibuffer-with-setup-hook): Doc fix (Bug#5149).

parent 918fa8ba
2010-01-01 Chong Yidong <cyd@stupidchicken.com>
* files.el (minibuffer-with-setup-hook): Doc fix (Bug#5149).
2010-01-01 Juri Linkov <juri@jurta.org>
* comint.el (comint-input-ring-size): Make it a defcustom and
......
......@@ -1284,9 +1284,13 @@ its documentation for additional customization information."
))
(defmacro minibuffer-with-setup-hook (fun &rest body)
"Add FUN to `minibuffer-setup-hook' while executing BODY.
"Temporarily add FUN to `minibuffer-setup-hook' while executing BODY.
BODY should use the minibuffer at most once.
Recursive uses of the minibuffer will not be affected."
Recursive uses of the minibuffer are unaffected (FUN is not
called additional times).
This macro actually adds an auxilliary function that calls FUN,
rather than FUN itself, to `minibuffer-setup-hook'."
(declare (indent 1) (debug t))
(let ((hook (make-symbol "setup-hook")))
`(let (,hook)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment