(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)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 12 Jan 2024 22:52:00 +0000 (17:52 -0500)
commita764b503e126a60ff4ea1266da924de7b020637e
treef87214d6bf68de086634c2da79259a619d7d6f1b
parentee2a8fd4cff84cd5bd672fdde8ec3e0800f132be
(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.
lisp/mwheel.el