GNU bug report logs - #68698
30.0.50; Making xt-mouse emit `wheel-up/down`

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Wed, 24 Jan 2024 20:34:02 UTC

Severity: normal

Found in version 30.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #41 received at 68698 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 68698 <at> debbugs.gnu.org, jared <at> finder.org
Subject: Re: bug#68698: 30.0.50; Making xt-mouse emit `wheel-up/down`
Date: Fri, 26 Jan 2024 08:04:17 -0500
>> > A local run of HEAD (as of Jan 17, I'm at daec3e) with
>> > "./configure --with-pgtk" has mouse-wheel-up-event set to wheel-down
>> > because (featurep 'pgtk-win) is t, even with -nw on the command line.
>> > Testing on Windows at Emacs 29.1 shows the same behavior.
>> 
>> This has been changed on `master` around Jan 19.  Now `mwheel.el` uses
>> `wheel-up/down` unconditionally and `mouse-wheel-up/down-event` is only
>> used for *other* events (defaults to `mouse-4/5`).
>
> Was this reflected in the documentation?  The ELisp Reference manual
> still says
>
>      The ‘wheel-up’ and ‘wheel-down’ events are generated only on some
>      kinds of systems.  On other systems, other events like ‘mouse-4’
>      and ‘mouse-5’ are used instead.  Portable code should handle both
>      ‘wheel-up’ and ‘wheel-down’ events as well as the events specified
>      in the variables ‘mouse-wheel-up-event’ and
>      ‘mouse-wheel-down-event’, defined in ‘mwheel.el’.  Beware that for
>      historical reasons the ‘mouse-wheel-_up_-event’ is the variable
>      that holds an event that should be handled similarly to
>      ‘wheel-_down_’ and vice versa.
>
> Is that still correct and accurate?  (And what about a similar issue
> with wheel-left/right?).

Yup, before Jan 19 the text was different :-)


        Stefan





This bug report was last modified 1 year and 115 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.