* Re: /srv/bzr/emacs/trunk r102794: Doc fix for y-or-n-p and yes-or-no-p.
[not found] <E1Pbh6v-00075u-WE@internal.in.savannah.gnu.org>
@ 2011-01-09 9:30 ` Štěpán Němec
2011-01-09 17:57 ` Chong Yidong
0 siblings, 1 reply; 2+ messages in thread
From: Štěpán Němec @ 2011-01-09 9:30 UTC (permalink / raw)
To: Chong Yidong; +Cc: emacs-devel
Chong Yidong <cyd@stupidchicken.com> writes:
> ------------------------------------------------------------
> revno: 102794
> committer: Chong Yidong <cyd@stupidchicken.com>
> branch nick: trunk
> timestamp: Sat 2011-01-08 16:17:58 -0500
> message:
> Doc fix for y-or-n-p and yes-or-no-p.
[...]
> --- a/src/fns.c 2011-01-08 13:32:31 +0000
> +++ b/src/fns.c 2011-01-08 21:17:58 +0000
> @@ -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) \"
^^^^^^^^
`yes-or-no-p'
> +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.
^ permalink raw reply [flat|nested] 2+ messages in thread