emacs-devel
[Top][All Lists]
Advanced

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

Re: Disabling mouse input


From: Eli Zaretskii
Subject: Re: Disabling mouse input
Date: Sat, 02 Nov 2024 18:59:25 +0200

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: dradetsky@gmail.com,  luangruo@yahoo.com,  emacs-devel@gnu.org
> Date: Sat, 02 Nov 2024 12:54:22 -0400
> 
> >>     (define-key input-decode-map [wheel-down] (lambda (_prompt) []))
> >>     (define-key input-decode-map [wheel-up]   (lambda (_prompt) []))
> >>     (define-key input-decode-map [mouse-1]    (lambda (_prompt) []))
> >>     (define-key input-decode-map [mouse-2]    (lambda (_prompt) []))
> >>     (define-key input-decode-map [mouse-3]    (lambda (_prompt) []))
> >
> > Wouldn't that cause Emacs to think input events arrived, when some
> > mouse events are read by the socket hook?
> 
> I think the answer is yes, tho I'm not sure what you mean by "think
> input events arrived" nor why you seem to think that would be a problem.

I mentioned that in my original comments: stuff like while-no-input
will think some input arrived, which is not what the users would want,
when this knob is used.

Which is why I prefer to prevent inserting the mouse events into the
input queue to begin with.



reply via email to

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