]> git.eshelyaron.com Git - emacs.git/commit
mwheel.el: Code clean to reduce duplication
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 13 Jan 2024 00:05:24 +0000 (19:05 -0500)
committerEshel Yaron <me@eshelyaron.com>
Sun, 21 Jan 2024 07:30:56 +0000 (08:30 +0100)
commit6b5682069e98baf3ca97f0a6d0580646314ca479
tree09a01ed040482595e7420ae5108cf2ebac0c1f67
parent936acda27821f8335fb2ab55a42563c1bde15967
mwheel.el: Code clean to reduce duplication

* lisp/mwheel.el (mouse-wheel-obey-old-style-wheel-buttons): New var,
extracted from `mouse-wheel-*-event` definitions.
(mouse-wheel-down-event, mouse-wheel-up-event)
(mouse-wheel-left-event, mouse-wheel-right-event): Use it.

(cherry picked from commit 998667f90262432facbf43cdb1f0a96704c84271)
lisp/mwheel.el