summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2010-01-01 15:03:37 -0500
committerChong Yidong <cyd@stupidchicken.com>2010-01-01 15:03:37 -0500
commit9bbe0828a0871985dfc8e1ba82020280efdaeb36 (patch)
treeb00e49c137f909bc675f2a9f3add7d6a6fe6003a /lisp/files.el
parent918fa8ba98b1a5a2b94879c092abefeab5dfe85c (diff)
downloademacs-9bbe0828a0871985dfc8e1ba82020280efdaeb36.tar.gz
* lisp/files.el (minibuffer-with-setup-hook): Doc fix (Bug#5149).
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 6cfc727686e..22f5936a1f6 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -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)