]> git.eshelyaron.com Git - emacs.git/commit
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)
committerEshel Yaron <me@eshelyaron.com>
Sun, 21 Jan 2024 07:30:46 +0000 (08:30 +0100)
commit127734afada5a7cd01216684afacdb50d902f269
tree2b6ed82902c0ffc14de42d85e6442a082feb2d6a
parent40e54d2cda0ea9439f6bf9c7ddd72bd153c8c11f
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.

(cherry picked from commit db8890b3c96289ca95e4ea3ea53f0eda1a948af6)
doc/lispref/commands.texi
etc/NEWS
lisp/completion-preview.el
lisp/edmacro.el
lisp/mwheel.el