mwheel.el: Unconditionally use the `wheel-up/down/...` events
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 12 Jan 2024 23:28:12 +0000 (18:28 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 20 Jan 2024 20:03:26 +0000 (15:03 -0500)
commitdb8890b3c96289ca95e4ea3ea53f0eda1a948af6
treeaecb751048bee18b7271229c27b0b3b0c1d80172
parent82f71e106afd9bede95cfea3025f7c059d7c2bcf
mwheel.el: Unconditionally use the `wheel-up/down/...` events

The `mouse-wheel-DIR-event` vars were introduced because under X11
we get different `mouse-N` events depending on the users' mouse and
those same events can be used for other things for other rodents, so we
can't unconditionally treat those events as mouse-wheel events.

But this does not apply to the `wheel-up/down/...` events.
So hard code them.

* lisp/mwheel.el (mwheel--is-dir-p): Always consider the `wheel-DIR` events.
(mouse-wheel--setup-bindings): Always bind the `wheel-DIR` events.

* lisp/completion-preview.el (completion-preview--mouse-map):
Unconditionally bind the `wheel-DIR` events.
* lisp/edmacro.el (edmacro-fix-menu-commands): Hard code the
`wheel-DIR` events as mouse events regardless of `mouse-wheel-*-event`s.
* lisp/progmodes/flymake.el (flymake--mode-line-counter-map):
Do nothing, because it's already been done in commit e5be6c7ae309.

* doc/lispref/commands.texi (Misc Events): Document the need to use
`wheel-up/down/left/right` unconditionally.
doc/lispref/commands.texi
etc/NEWS
lisp/completion-preview.el
lisp/edmacro.el
lisp/mwheel.el