]> git.eshelyaron.com Git - emacs.git/commit
Simplify mwheel-mode by using alist instead of two variables
authorStefan Kangas <stefankangas@gmail.com>
Wed, 2 Sep 2020 21:10:27 +0000 (23:10 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Wed, 2 Sep 2020 21:18:02 +0000 (23:18 +0200)
commit76e8d935a72c14037b44cff0a929b4f71b65bcf1
tree9aed601343fb2095e2468a40e4bd07372d273435
parent77a5b696bbb4f70e23e94c8a731168a6673c8cd9
Simplify mwheel-mode by using alist instead of two variables

* lisp/mwheel.el (mouse-wheel--remove-bindings): Update call
signature to take no arguments.  Doc fix.
(mouse-wheel--add-binding): Break out from...
(mouse-wheel-mode): ...here.  Simplify by using above functions.
(mouse-wheel--installed-bindings-alist): New variable.
(mwheel-installed-bindings): Make obsolete.
(mwheel-installed-text-scale-bindings): Make obsolete.
* test/lisp/mwheel-tests.el (mwheel-test-enable/disable):
New test.
lisp/mwheel.el
test/lisp/mwheel-tests.el