# HG changeset patch # User Chong Yidong # Date 1262376217 18000 # Node ID 4af83423a0f1c63d81672f8731cbd3b0bcdd9d43 # Parent ee43864593e4bcad4c2d97d0d126bc2f9ffe42b0 * lisp/files.el (minibuffer-with-setup-hook): Doc fix (Bug#5149). diff -r ee43864593e4 -r 4af83423a0f1 lisp/ChangeLog --- a/lisp/ChangeLog Fri Jan 01 13:44:02 2010 -0500 +++ b/lisp/ChangeLog Fri Jan 01 15:03:37 2010 -0500 @@ -1,3 +1,7 @@ +2010-01-01 Chong Yidong + + * files.el (minibuffer-with-setup-hook): Doc fix (Bug#5149). + 2010-01-01 Juri Linkov * comint.el (comint-input-ring-size): Make it a defcustom and diff -r ee43864593e4 -r 4af83423a0f1 lisp/files.el --- a/lisp/files.el Fri Jan 01 13:44:02 2010 -0500 +++ b/lisp/files.el Fri Jan 01 15:03:37 2010 -0500 @@ -1284,9 +1284,13 @@ )) (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)