Change font size in correct window using mouse wheel
authorStefan Kangas <stefankangas@gmail.com>
Fri, 11 Oct 2019 00:15:24 +0000 (02:15 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Fri, 11 Oct 2019 00:16:11 +0000 (02:16 +0200)
commitffb7100750c211f55dd95811675d12a783f15d66
tree1a813097e29c8fe1eaf3b952e7f0a71303fd2d6f
parentbb392a9c8dab154cb9c80decf2ce4cf2da80e635
Change font size in correct window using mouse wheel

* lisp/mwheel.el (mouse-wheel-follow-mouse): Doc fix.
(mouse-wheel--get-scroll-window): New function extracted from...
(mwheel-scroll): ...here.
(mouse-wheel-text-scale): New function to change face height in
the correct window, depending on the value of
'mouse-wheel-follows-mouse'.  (Bug#28182)
(mouse-wheel-mode): Bind 'mouse-wheel-text-scale' instead of
'text-scale-increase' and 'text-scale-decrease'.
etc/NEWS
lisp/mwheel.el