* y-or-n-p actually a conspiracy involving SPC and DEL too
@ 2003-02-25 0:42 Dan Jacobson
0 siblings, 0 replies; only message in thread
From: Dan Jacobson @ 2003-02-25 0:42 UTC (permalink / raw)
y-or-n-p is a built-in function.
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 the answer is requested; a single character is enough.
Also accepts Space to mean yes, or Delete to mean no. (Actually, it uses
well, as a matter of trust between the user and emacs, you might
mention "(y,SPC or n,DEL)".
That way the user will have some clue as to why all is hunky dory
after he hits one of the choices not listed.
And when one hits a key beyond the four, do ask for one of the four
and not just mentioning the two.
--
http://jidanni.org/ Taiwan(04)25854780
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-02-25 0:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-25 0:42 y-or-n-p actually a conspiracy involving SPC and DEL too Dan Jacobson
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).