Package: Emacs Version: 30.0.50 Currently, wheel-up/down events are generated in most setups instead of the old mouse-4/5. There are still two exceptions: - X11 builds not using XInput2. - text terminals. The attached patch intends to fix the second bullet. Text terminals themselves only give us info equivalent to `mouse-4/5` and don't actually tell us that it's a wheel movement, but we can still turn those things into `wheel-up/down`. This is related to bug#49803. The second step would be to do something similar for the non-XInput2 X11 build: make it generate `wheel-up/down` events according to `mouse-wheel-down/up-event` settings. Then packages like `completion-preview` and `mwheel` won't need to pay attention to the (confusingly named) `mouse-wheel-down/up-event` vars any more. Stefan