diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2020-09-02 23:10:27 +0200 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2020-09-02 23:18:02 +0200 |
commit | 76e8d935a72c14037b44cff0a929b4f71b65bcf1 (patch) | |
tree | 9aed601343fb2095e2468a40e4bd07372d273435 /lisp/emacs-lisp/helper.el | |
parent | 77a5b696bbb4f70e23e94c8a731168a6673c8cd9 (diff) | |
download | emacs-76e8d935a72c14037b44cff0a929b4f71b65bcf1.tar.gz emacs-76e8d935a72c14037b44cff0a929b4f71b65bcf1.tar.bz2 emacs-76e8d935a72c14037b44cff0a929b4f71b65bcf1.zip |
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.
Diffstat (limited to 'lisp/emacs-lisp/helper.el')
0 files changed, 0 insertions, 0 deletions