GNU bug report logs -
#76812
vestigial elisp manual descriptions of obsolete variables mouse-wheel-up/down-event
Previous Next
To reply to this bug, email your comments to 76812 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76812
; Package
emacs
.
(Fri, 07 Mar 2025 13:50:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
JD Smith <jdtsmith <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 07 Mar 2025 13:50:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The following paragraph in the elisp manual section "Miscellaneous System Events" describes blinding events based on the now obsolete variables `mouse-wheel-down-event', etc.:
> 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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76812
; Package
emacs
.
(Fri, 07 Mar 2025 16:28:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 76812 <at> debbugs.gnu.org (full text, mbox):
JD Smith <jdtsmith <at> gmail.com> writes:
> The following paragraph in the elisp manual section "Miscellaneous System Events" describes blinding events based on the now obsolete variables `mouse-wheel-down-event', etc.:
>
>> 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.
Stefan, WDYT?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76812
; Package
emacs
.
(Fri, 07 Mar 2025 17:20:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 76812 <at> debbugs.gnu.org (full text, mbox):
>> The following paragraph in the elisp manual section "Miscellaneous System
>> Events" describes blinding events based on the now obsolete variables
>> `mouse-wheel-down-event', etc.:
>>
>>> 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.
>
> Stefan, WDYT?
To the extent that there are still cases where mouse-4/5 is used,
I guess we can keep that almost unchanged, except to adjust the wording
to indicate what is more normal. E.g.:
The ‘wheel-up’ and ‘wheel-down’ events are generated on most systems.
But in some unusual configurations, other events like ‘mouse-4’
and ‘mouse-5’ may still be used instead. Portable code that wants
to accommodate those cases 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.
?
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76812
; Package
emacs
.
(Fri, 07 Mar 2025 17:24:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 76812 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>>> The following paragraph in the elisp manual section "Miscellaneous System
>>> Events" describes blinding events based on the now obsolete variables
>>> `mouse-wheel-down-event', etc.:
>>>
>>>> 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.
>>
>> Stefan, WDYT?
>
> To the extent that there are still cases where mouse-4/5 is used,
> I guess we can keep that almost unchanged, except to adjust the wording
> to indicate what is more normal. E.g.:
>
> The ‘wheel-up’ and ‘wheel-down’ events are generated on most systems.
> But in some unusual configurations, other events like ‘mouse-4’
> and ‘mouse-5’ may still be used instead. Portable code that wants
> to accommodate those cases 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.
>
> ?
Would it make sense we say something about what those "unusual
configurations" are?
For example, are they "user configurations", "old versions of Emacs",
"Haiku systems" (I'm just guessing here), or something else?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76812
; Package
emacs
.
(Fri, 07 Mar 2025 20:46:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 76812 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
> On Mar 7, 2025, at 12:22 PM, Stefan Kangas <stefankangas <at> gmail.com> wrote:
>
> Stefan Monnier <monnier <at> iro.umontreal.ca <mailto:monnier <at> iro.umontreal.ca>> writes:
>
>>>> The following paragraph in the elisp manual section "Miscellaneous System
>>>> Events" describes blinding events based on the now obsolete variables
>>>> `mouse-wheel-down-event', etc.:
>>>>
>>>>> 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.
>>>
>>> Stefan, WDYT?
>>
>> To the extent that there are still cases where mouse-4/5 is used,
>> I guess we can keep that almost unchanged, except to adjust the wording
>> to indicate what is more normal. E.g.:
>>
>> The ‘wheel-up’ and ‘wheel-down’ events are generated on most systems.
>> But in some unusual configurations, other events like ‘mouse-4’
>> and ‘mouse-5’ may still be used instead. Portable code that wants
>> to accommodate those cases 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.
>>
>> ?
>
> Would it make sense we say something about what those "unusual
> configurations" are?
I think so. The current situation is sort of odd, in that the variables are both obsoleted (conveying: do not use in new code), and also apparently required for use in new portable code. Does that suggest they were obsoleted prematurely, if they are still required on some systems?
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76812
; Package
emacs
.
(Sat, 08 Mar 2025 19:39:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 76812 <at> debbugs.gnu.org (full text, mbox):
>> Would it make sense we say something about what those "unusual
>> configurations" are?
IIRC the only known cases where the `mouse-4/5` are still used instead
of `wheel-up/down` is when the users set `mouse-wheel-buttons` to nil,
presumably in order to work around a problem in a package which has not
yet been updated to pay attention to wheel-up/down.
Of course, there may also be packages out there doing things similar to
`xterm-mouse-mode` and which still generate `mouse-4/5` events, tho
I haven't heard of such packages.
> I think so. The current situation is sort of odd, in that the variables are
> both obsoleted (conveying: do not use in new code), and also apparently
> required for use in new portable code. Does that suggest they were
> obsoleted prematurely, if they are still required on some systems?
Yeah, I would be fine with just removing mention of those variables.
Stefan
Severity set to 'minor' from 'normal'
Request was from
Stefan Kangas <stefankangas <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Mon, 10 Mar 2025 21:08:02 GMT)
Full text and
rfc822 format available.
This bug report was last modified 96 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.