diff options
| author | Chong Yidong <cyd@stupidchicken.com> | 2011-01-08 16:17:58 -0500 |
|---|---|---|
| committer | Chong Yidong <cyd@stupidchicken.com> | 2011-01-08 16:17:58 -0500 |
| commit | 3d91e302868dfb6bf12e697f81167447ce4a7250 (patch) | |
| tree | 890b932020a3984ae076361f026a2695db03fa7a /lisp/subr.el | |
| parent | 278f68456b8c25fff6d2274476cdc8ee3609f68b (diff) | |
| download | emacs-3d91e302868dfb6bf12e697f81167447ce4a7250.tar.gz | |
Doc fix for y-or-n-p and yes-or-no-p.
* subr.el (y-or-n-p): Doc fix.
* fns.c (Fyes_or_no_p): Doc fix.
Diffstat (limited to 'lisp/subr.el')
| -rw-r--r-- | lisp/subr.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 0f65fb7fbb0..8294ab17782 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -2043,8 +2043,11 @@ floating point support." (defun y-or-n-p (prompt &rest args) "Ask user a \"y or n\" question. Return t if answer is \"y\". -The argument PROMPT is the string to display to ask the question. -It should end in a space; `y-or-n-p' adds `(y or n) ' to it. +The string to display to ask the question is obtained by +formatting the string PROMPT with arguments ARGS (see `format'). +The result should end in a space; `y-or-n-p' adds \"(y or n) \" +to it. + No confirmation of the answer is requested; a single character is enough. Also accepts Space to mean yes, or Delete to mean no. \(Actually, it uses the bindings in `query-replace-map'; see the documentation of that variable |
