* bug#72585: 31.0.50; inconsistency between mouse-wheel-buttons and mouse-wheel-[down/up]-event
@ 2024-08-12 2:22 Kazuhiro Ito
2024-08-15 7:47 ` Eli Zaretskii
2024-08-15 11:21 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 2 replies; 7+ messages in thread
From: Kazuhiro Ito @ 2024-08-12 2:22 UTC (permalink / raw)
To: 72585
mouse-wheel-down-event and mouse-wheel-up-event default value are
`mouse-4` and `mouse-5`, respectively. But mouse-wheel-buttons's
default is
((4 . wheel-up) (5 . wheel-down) (6 . wheel-left) (7 . wheel-right)) .
Is this inconsistency intended?
--
Kazuhiro Ito
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#72585: 31.0.50; inconsistency between mouse-wheel-buttons and mouse-wheel-[down/up]-event
2024-08-12 2:22 bug#72585: 31.0.50; inconsistency between mouse-wheel-buttons and mouse-wheel-[down/up]-event Kazuhiro Ito
@ 2024-08-15 7:47 ` Eli Zaretskii
2024-08-15 11:58 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-15 11:21 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
1 sibling, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2024-08-15 7:47 UTC (permalink / raw)
To: Kazuhiro Ito, Po Lu, Stefan Monnier; +Cc: 72585
> From: Kazuhiro Ito <kzhr@d1.dion.ne.jp>
> Date: Mon, 12 Aug 2024 11:22:54 +0900
>
>
> mouse-wheel-down-event and mouse-wheel-up-event default value are
> `mouse-4` and `mouse-5`, respectively. But mouse-wheel-buttons's
> default is
> ((4 . wheel-up) (5 . wheel-down) (6 . wheel-left) (7 . wheel-right)) .
>
> Is this inconsistency intended?
Adding Stefan and Po Lu. Any comments?
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#72585: 31.0.50; inconsistency between mouse-wheel-buttons and mouse-wheel-[down/up]-event
2024-08-12 2:22 bug#72585: 31.0.50; inconsistency between mouse-wheel-buttons and mouse-wheel-[down/up]-event Kazuhiro Ito
2024-08-15 7:47 ` Eli Zaretskii
@ 2024-08-15 11:21 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-15 11:49 ` Kazuhiro Ito
1 sibling, 1 reply; 7+ messages in thread
From: Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-08-15 11:21 UTC (permalink / raw)
To: Kazuhiro Ito; +Cc: 72585
> mouse-wheel-down-event and mouse-wheel-up-event default value are
> `mouse-4` and `mouse-5`, respectively. But mouse-wheel-buttons's
> default is
> ((4 . wheel-up) (5 . wheel-down) (6 . wheel-left) (7 . wheel-right)) .
>
> Is this inconsistency intended?
Not sure what is the inconsistency you see here.
If you mean the up/down switch, then it's "documented" in the docstring
of `mouse-wheel-down-event`:
Event used for scrolling down, beside ‘wheel-up’, if any.
- Stefan
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#72585: 31.0.50; inconsistency between mouse-wheel-buttons and mouse-wheel-[down/up]-event
2024-08-15 11:21 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-08-15 11:49 ` Kazuhiro Ito
0 siblings, 0 replies; 7+ messages in thread
From: Kazuhiro Ito @ 2024-08-15 11:49 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 72585, Eli Zaretskii
> > mouse-wheel-down-event and mouse-wheel-up-event default value are
> > `mouse-4` and `mouse-5`, respectively. But mouse-wheel-buttons's
> > default is
> > ((4 . wheel-up) (5 . wheel-down) (6 . wheel-left) (7 . wheel-right)) .
> >
> > Is this inconsistency intended?
>
> Not sure what is the inconsistency you see here.
Ah, sorry, I misread related documents. I don't have an environments
on which emacs receives mouse-4/5 events for mouse wheel, so I couldn't
confirm actual behavior.
Because Mouse Input node on emacs.info say as below,
> When you click the left mouse button, Emacs receives a mouse-1
> event. To see what command is bound to that event, you can type C-h
> c and then press the left mouse button. Similarly, the middle mouse
> button is mouse-2 and the right mouse button is mouse-3. If you have
> a mouse with a wheel, the wheel events are commonly bound to either
> wheel-down or wheel-up, or mouse-4 and mouse-5, but that depends on
> the operating system configuration.
>
> In general, legacy X systems and terminals (see Using a Mouse in
> Text Terminals) will report mouse-4 and mouse-5, while all other
> systems will report wheel-down and wheel-up.
I believed wheel-down/up whould send mouse-4/5 events to Emacs.
--
Kazuhiro Ito
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#72585: 31.0.50; inconsistency between mouse-wheel-buttons and mouse-wheel-[down/up]-event
2024-08-15 7:47 ` Eli Zaretskii
@ 2024-08-15 11:58 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-15 23:56 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 7+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-08-15 11:58 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 72585, Kazuhiro Ito, Stefan Monnier
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Kazuhiro Ito <kzhr@d1.dion.ne.jp>
>> Date: Mon, 12 Aug 2024 11:22:54 +0900
>>
>>
>> mouse-wheel-down-event and mouse-wheel-up-event default value are
>> `mouse-4` and `mouse-5`, respectively. But mouse-wheel-buttons's
>> default is
>> ((4 . wheel-up) (5 . wheel-down) (6 . wheel-left) (7 . wheel-right)) .
>>
>> Is this inconsistency intended?
>
> Adding Stefan and Po Lu. Any comments?
It's intended, as by a series of historical accidents Emacs has a
`wheel-down event that is used for scrolling down and vice versa.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#72585: 31.0.50; inconsistency between mouse-wheel-buttons and mouse-wheel-[down/up]-event
2024-08-15 11:58 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-08-15 23:56 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-16 13:35 ` Kazuhiro Ito
0 siblings, 1 reply; 7+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-08-15 23:56 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 72585, Kazuhiro Ito, Stefan Monnier
Po Lu <luangruo@yahoo.com> writes:
> Eli Zaretskii <eliz@gnu.org> writes:
>
>>> From: Kazuhiro Ito <kzhr@d1.dion.ne.jp>
>>> Date: Mon, 12 Aug 2024 11:22:54 +0900
>>>
>>>
>>> mouse-wheel-down-event and mouse-wheel-up-event default value are
>>> `mouse-4` and `mouse-5`, respectively. But mouse-wheel-buttons's
>>> default is
>>> ((4 . wheel-up) (5 . wheel-down) (6 . wheel-left) (7 . wheel-right)) .
>>>
>>> Is this inconsistency intended?
>>
>> Adding Stefan and Po Lu. Any comments?
>
> It's intended, as by a series of historical accidents Emacs has a
> `wheel-down event that is used for scrolling down and vice versa.
A `wheel-up' event that is used for scrolling down. Sorry!
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#72585: 31.0.50; inconsistency between mouse-wheel-buttons and mouse-wheel-[down/up]-event
2024-08-15 23:56 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-08-16 13:35 ` Kazuhiro Ito
0 siblings, 0 replies; 7+ messages in thread
From: Kazuhiro Ito @ 2024-08-16 13:35 UTC (permalink / raw)
To: Po Lu, Stefan Monnier; +Cc: Eli Zaretskii, 72585-done
> >>> mouse-wheel-down-event and mouse-wheel-up-event default value are
> >>> `mouse-4` and `mouse-5`, respectively. But mouse-wheel-buttons's
> >>> default is
> >>> ((4 . wheel-up) (5 . wheel-down) (6 . wheel-left) (7 . wheel-right)) .
> >>>
> >>> Is this inconsistency intended?
> >>
> >> Adding Stefan and Po Lu. Any comments?
> >
> > It's intended, as by a series of historical accidents Emacs has a
> > `wheel-down event that is used for scrolling down and vice versa.
>
> A `wheel-up' event that is used for scrolling down. Sorry!
Stefan and Po Lu, thank you for your answers and sorry for my
misreading.
It is not a bug, so I'm closing the issue.
--
Kazuhiro Ito
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-08-16 13:35 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-12 2:22 bug#72585: 31.0.50; inconsistency between mouse-wheel-buttons and mouse-wheel-[down/up]-event Kazuhiro Ito
2024-08-15 7:47 ` Eli Zaretskii
2024-08-15 11:58 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-15 23:56 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-16 13:35 ` Kazuhiro Ito
2024-08-15 11:21 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-15 11:49 ` Kazuhiro Ito
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).