I was going to agree with this. But then I noticed that my driver is set for an exception on runemacs.exe. (I had to look in the registry to find this.)
But before refuting Jason I decided to be daring and remove exceptions completely. The result -- even after restarting the computer, Emacs yanks when I press the scroll wheel, even though the driver is set to AutoScroll. And C-h k reports: <mouse-2> (translated from <down-mouse-2> <mouse-2>) at that spot runs the command mouse-yank-at-click which is an interactive compiled Lisp function in `mouse.el'. I then set an exception for emacs.exe to disable clicking the scroll wheel. This results in no action in Emacs when I click the wheel. I'm participating in this thread because I do recall having a mouse wheel problem with an earlier version of Emacs (perhaps 20.7?). But it seems that Emacs should be able to handle the mouse wheel click event without the need for any exception from the driver. Drew, let me know if you can think of something you want me to try on my system. I'll also check this out on my home computer. - Ray -----Original Messages----- Date: Wed, 23 Sep 2009 14:53:34 +0800 From: Jason Rumney <[email protected]> Subject: Re: [h-e-w] Re: mouse wheel button problem on Windows To: Drew Adams <[email protected]> Cc: [email protected], 'Raymond Zeitler' <[email protected]> Drew Adams wrote: > Something I don't understand is that if I disable program-specific settings and > assign the wheel button to `None' at the general level, then no event at all is > sent to Emacs from the wheel button, but if I set the wheel button to `None' as > a program-specific setting for `gnuclientw' or `runemacs', then it apparently > has no effect (still yanks and turns on autoscrolling). > There is nothing surprising about that, neither runemacs nor gnuclientw are involved with mouse wheel processing at all. Only emacs.exe itself. --------------------------------------- Date: Wed, 23 Sep 2009 07:10:55 -0700 From: "Drew Adams" <[email protected]> Subject: RE: [h-e-w] Re: mouse wheel button problem on Windows To: "'Jason Rumney'" <[email protected]> Cc: [email protected], 'Raymond Zeitler' <[email protected]> > > Something I don't understand is that if I disable > > program-specific settings and assign the wheel button to > > `None' at the general level, then no event at all is > > sent to Emacs from the wheel button, but if I set the wheel > > button to `None' as a program-specific setting for > > `gnuclientw' or `runemacs', then it apparently > > has no effect (still yanks and turns on autoscrolling). > > There is nothing surprising about that, neither runemacs nor > gnuclientw are involved with mouse wheel processing at all. > Only emacs.exe itself. OK. If I set emacs.exe to `None' for the wheel button, then the effect is the same as setting it to `None' at the general level: no event at all is sent to Emacs from the wheel button. `C-h k' sees nothing and just waits until I hit some other key. Can you help? How can I get Windows to send an event to Emacs for a wheel-button click (press), and not have Windows also turn on autoscroll? All I want is the normal `down-mouse-2' followed by `mouse-2' events.
