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:50:09 +0200

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Eli Zaretskii <eliz@gnu.org>,  Po Lu <luangruo@yahoo.com>,
>   emacs-devel@gnu.org
> Date: Sat, 02 Nov 2024 09:38:19 -0400
> 
> >> (This should not surprise anyone, because input events are handled in
> >> C, not in Lisp, and so disabling this in Lisp is expected to be
> >> impossible.)
> > Well, everyone I talked to was sure it must be possible in
> > Lisp, so I figured somebody would ask eventually.
> 
> My first intuition would be to do something like:
> 
>     (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?



reply via email to

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