GNU bug report logs - #41722
26.3; mouse-2 does not work well on 7 button mouse

Previous Next

Package: emacs;

Reported by: Jason <jgg <at> ziepe.ca>

Date: Fri, 5 Jun 2020 15:44:01 UTC

Severity: normal

Tags: moreinfo

Found in version 26.3

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Jason <jgg <at> ziepe.ca>
Cc: 41722 <at> debbugs.gnu.org
Subject: bug#41722: 26.3; mouse-2 does not work well on 7 button mouse
Date: Mon, 06 Jun 2022 15:54:54 +0200
Jason <jgg <at> ziepe.ca> writes:

> My mouse has the mouse-wheel-right/left-event capability, however due to
> the HW design if you try to generate mouse-2 (eg middle click) it nearly
> always is preceded by a mouse-6 or mouse-7 event. xev confirms this.
>
> At some point mwheel.el gained support for the
> mouse-wheel-right/left-event, and traps it into
> mwheel-scroll. mwheel-scroll causes *any* wheel event to disable mouse-2
> on a timer (see mwheel-inhibit-click-event-timer).
>
> Thus with my mouse middle click doesn't work in emacs any more. This is
> a new regression at some point since emacs 25.2
>
> Since the mwheel left/right scroll is inhibited by default (see
> mouse-wheel-tilt-scroll) it should not trigger the inhibit click event
> timer unless that function is turned on.
>
> This mouse is a logitech M-U0007
>
> A simple work around is to unbind mouse-6/7 but it was very tricky to
> figure all this out.

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

If I understand the logic surrounding mwheel-inhibit-click-event-timer
(and I may well not), this is basically working as designed, and the
correct solution here is to do what you did -- unbind mouse-6/7.

I'm not sure what we can do on the Emacs side here -- perhaps document
this better?  But I'm not sure were.  Does anybody have an opinion here?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 36 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.