]> git.eshelyaron.com Git - emacs.git/commit
(mwheel--is-dir-p): New macro to reduce code duplication
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 12 Jan 2024 22:50:09 +0000 (17:50 -0500)
committerEshel Yaron <me@eshelyaron.com>
Sun, 21 Jan 2024 07:27:07 +0000 (08:27 +0100)
commitc15c14b257f31ee0f7dfb01c7756ede66087a85a
treeb00f2b0eb82102b8460efae037cd8e2c363d8256
parentd2ade6a67cac61e81045d06c85bdf1aa228e739c
(mwheel--is-dir-p): New macro to reduce code duplication

It also slightly reduces memory allocation.

* lisp/mwheel.el (mwheel--is-dir-p): New macro.
(mwheel-scroll, mouse-wheel-text-scale)
(mouse-wheel-global-text-scale): Use it.

(cherry picked from commit a764b503e126a60ff4ea1266da924de7b020637e)
lisp/mwheel.el