Tags: patch Following up on the `xt-mouse.el` patch (bug#68698), I now propose we do the same for those `mouse-4/5/6/7` events generated by old-style X11 input. IIUC Po Lu wasn't favorable to the idea, but maybe seeing the code will make a convert? Beside that, the patch has 2 remaining issues: - Lack of corresponding updates to `etc/NEWS` and `doc/lispref/commands.texi`. - Lack of testing for the left/right remapping. This is *really* necessary because even after (re)reading the various parts of the code that handle horizontal scrolling, I'm still very much unsure if I got the direction right[left?], so if you have a mouse with a horizontal wheel, please compare the `wheel-left/right` events generated with and without building `--without-xinput2`. Stefan In GNU Emacs 30.0.50 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) of 2024-01-25 built on pastel Repository revision: 5945fab9af0b52cc55f06b2c7e911d51e34a9cdf Repository branch: work Windowing system distributor 'The X.Org Foundation', version 11.0.12101007 System Description: Debian GNU/Linux 12 (bookworm) Configured using: 'configure -C --enable-checking --enable-check-lisp-object-type --with-modules --with-cairo --with-tiff=ifavailable 'CFLAGS=-Wall -g3 -Og -Wno-pointer-sign' --without-native-compilation PKG_CONFIG_PATH=/home/monnier/lib/pkgconfig'