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

[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'?






reply via email to

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