bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

y-or-n-p actually a conspiracy involving SPC and DEL too


From: Dan Jacobson
Subject: y-or-n-p actually a conspiracy involving SPC and DEL too
Date: Tue, 25 Feb 2003 08:42:01 +0800
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu)

  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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]