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

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

bug#687: what was changed for mouse wheel? where is this documented?


From: Drew Adams
Subject: bug#687: what was changed for mouse wheel? where is this documented?
Date: Sat, 3 Jan 2009 10:16:34 -0800

> >> I see.  Can you verify that Lennart's patch works on W32?
> >
> > Lennart's patch works, but it might be better to make wheel events on 
> > W32 set the appropriate click, double or triple modifier so that it is 
> > caught by the conditions that follow.
> 
> I have changed the code to make wheel events appear as click events 
> (double and triple wheel events were already handled correctly).
> 
> I am still confused about all the steps an event goes through to become 
> a Lisp event, as the click modifier was being set on the wheel events, 
> but wasn't returned by event-modifiers, which seems to ignore the 
> modifiers and just use the base name of the event to regenerate them. 
> Are the modifiers we set in C code that untrustworthy?

Sorry to interject, but which code did you change? I'd like to take a look. I
don't see a recent change to mwheel.el in CVS. And I still see `wheel-(up|down)'
events mentioned in the Elisp manual (in CVS).

The Elisp manual still says that it is only on some systems that wheel movements
get translated to `mouse-4' and `mouse-5'. And it explicitly advises, for
portable code, to use variables `mouse-wheel-(up|down)-event'. Has this changed?

I have code that tests for `wheel-up' and `wheel-down', for versions of Emacs
starting with 21 (as well as other wheel tests for Emacs 20). I test those
events in five different libraries. Likewise, I test, and bind,
mouse-wheel-(up|down)-event.

I also use a mouse that has 5 buttons, for which neither `mouse-4' nor `mouse-5'
is the wheel in any way. It's useful to be able to distinguish a 4th and 5th
mouse button from wheel movement.

I'm interested to see how your change changes these things and whether it will
break my code. Where would I find an explanation of what previously corresponds
to what now, so I can adapt my code to work in Emacs 23 as well as previous
versions? That is, how does the mouse wheel map to the various Emacs versions?
So far, my code works with Emacs 20 through 22; I just need it to work with
Emacs 23 also.








reply via email to

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