[Top][All Lists]

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

Re: `y-or-n-p' does not wait for input - assumes `n'

From: Luc Teirlinck
Subject: Re: `y-or-n-p' does not wait for input - assumes `n'
Date: Mon, 24 Jan 2005 22:06:10 -0600 (CST)

Drew Adams wrote:

   I'm probably missing something, but shouldn't y-or-n-p insist on a
   character `y' or `n' input event?

Yes, but you can enter any event you like as response to y-or-n-p.  It
will be read.  If it is not y, Y, n, N, <SPC>, <DEL>, C-] or C-g,
y-or-n-p will respond by asking the more emphatic form of the question.

Just do:

M-: (y-or-n-p "Event: ")

and then click the mouse somewhere on the Emacs frame.

   How could a mouse event be used to answer the question?

Richard's quote said: "tried to answer the question".



reply via email to

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