From: Drew Adams <drew.adams@oracle.com>
To: Noam Postavsky <npostavs@gmail.com>
Cc: 36989@debbugs.gnu.org
Subject: bug#36989: 26.2; Doc string of `y-or-n-p': say it returns nil if answer is not `y' or `DEL'
Date: Fri, 9 Aug 2019 10:20:37 -0700 (PDT) [thread overview]
Message-ID: <8b912ab4-fceb-47ef-9fec-7ef16fa7d102@default> (raw)
In-Reply-To: <85ef1u2rwg.fsf@gmail.com>
> > Subject line says it all. The doc says only that it returns `t' if
> > the answer is `y'. It should also say what it returns if the answer
> > is no (not `y' or `DEL').
>
> Did you miss where it says:
> Return t if answer is "y" and nil if it is "n".
> ^^^^^^^^^^^^^^^^
No, I didn't miss it, because it's not in the Emacs release
I reported on (the latest release, AFAIK): Emacs 26.2.
This is the full doc string (`C-h f'):
y-or-n-p is a compiled Lisp function in 'subr.el'.
(y-or-n-p PROMPT)
Ask user a "y or n" question. Return t if answer is "y".
Takes one argument, which 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.
No confirmation of answer is requested; a single character is enough.
Also accepts SPC to mean yes, or DEL to mean no.
next prev parent reply other threads:[~2019-08-09 17:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-09 16:44 bug#36989: 26.2; Doc string of `y-or-n-p': say it returns nil if answer is not `y' or `DEL' Drew Adams
2019-08-09 17:02 ` Noam Postavsky
2019-08-09 17:20 ` Drew Adams [this message]
2019-08-09 17:26 ` Noam Postavsky
2019-08-09 17:32 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8b912ab4-fceb-47ef-9fec-7ef16fa7d102@default \
--to=drew.adams@oracle.com \
--cc=36989@debbugs.gnu.org \
--cc=npostavs@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.