[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: |
Drew Adams |
Subject: |
RE: `y-or-n-p' does not wait for input - assumes `n' |
Date: |
Mon, 24 Jan 2005 19:45:43 -0800 |
If you set use-dialog-box to nil and then select "Foo Bar"
_with the mouse_,
"Please answer y or n. foo: (y or n)" appears in the echo area.
The "foo: (y or n)" _was_ asked (which you can see by looking at the
*Messages* buffer), but the mouse click got apparently treated as an
(invalid) answer to the first "foo: (y or n)" question.
It sounds like the down-event invoked the command,
and the up-event tried to answer the question.
I agree that is a bug. The up-event really ought to get ignored in
such a case. However, I don't see what criterion to use to
distinguish these cases from other cases where the up-event should not
be ignored.
I'm probably missing something, but shouldn't y-or-n-p insist on a character
`y' or `n' input event? How could a mouse event be used to answer the
question? Or do you mean that the mouse-up event is swallowed by the command
as it keeps reading until it gets `y' or `n'?
- Re: `y-or-n-p' does not wait for input - assumes `n', (continued)
- Re: `y-or-n-p' does not wait for input - assumes `n', Stefan Monnier, 2005/01/27
- Re: `y-or-n-p' does not wait for input - assumes `n', Richard Stallman, 2005/01/28
- Re: `y-or-n-p' does not wait for input - assumes `n', Stefan Monnier, 2005/01/28
- RE: `y-or-n-p' does not wait for input - assumes `n', Drew Adams, 2005/01/28
- Re: `y-or-n-p' does not wait for input - assumes `n', Richard Stallman, 2005/01/28
- RE: `y-or-n-p' does not wait for input - assumes `n', Drew Adams, 2005/01/29
- Re: `y-or-n-p' does not wait for input - assumes `n', Luc Teirlinck, 2005/01/26
- RE: `y-or-n-p' does not wait for input - assumes `n',
Drew Adams <=
- Re: `y-or-n-p' does not wait for input - assumes `n', Luc Teirlinck, 2005/01/24
- RE: `y-or-n-p' does not wait for input - assumes `n', Drew Adams, 2005/01/24
- Re: `y-or-n-p' does not wait for input - assumes `n', Stefan Monnier, 2005/01/25
- Re: `y-or-n-p' does not wait for input - assumes `n', Richard Stallman, 2005/01/26
- Re: `y-or-n-p' does not wait for input - assumes `n', Luc Teirlinck, 2005/01/26
- Re: `y-or-n-p' does not wait for input - assumes `n', Richard Stallman, 2005/01/26
- Re: `y-or-n-p' does not wait for input - assumes `n', Luc Teirlinck, 2005/01/26
- Re: `y-or-n-p' does not wait for input - assumes `n', Richard Stallman, 2005/01/30
- Re: `y-or-n-p' does not wait for input - assumes `n', Stefan Monnier, 2005/01/26