all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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 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.