diff src/fns.c @ 112165:fd05a6b39a42

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.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 08 Jan 2011 16:17:58 -0500
parents 6bac5e026755
children 1c4c22434b0d
line wrap: on
line diff
--- a/src/fns.c	Sat Jan 08 14:19:55 2011 -0500
+++ b/src/fns.c	Sat Jan 08 16:17:58 2011 -0500
@@ -2462,10 +2462,13 @@
 
 DEFUN ("yes-or-no-p", Fyes_or_no_p, Syes_or_no_p, 1, MANY, 0,
        doc: /* Ask user a yes-or-no question.  Return t if answer is yes.
-Takes one argument, which is the string to display to ask the question.
-It should end in a space; `yes-or-no-p' adds `(yes or no) ' to it.
-The user must confirm the answer with RET,
-and can edit it until it has been confirmed.
+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 \"(yes or no) \"
+to it.
+
+The user must confirm the answer with RET, and can edit it until it
+has been confirmed.
 
 Under a windowing system a dialog box will be used if `last-nonmenu-event'
 is nil, and `use-dialog-box' is non-nil.