From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#49803: 27.2; Mouse wheel on MacOS is reported as mouse-4 and mouse-5, but Emacs mwheel seems to use wheel-up/wheel-down instead Date: Wed, 11 Aug 2021 15:03:01 +0300 Message-ID: <83sfzgdw96.fsf@gnu.org> References: <83a6m1ofgi.fsf@gnu.org> <83r1fcm6rh.fsf@gnu.org> <87k0kusygj.fsf@gmail.com> <83v94dfozn.fsf@gnu.org> <87v94cqqop.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17216"; mail-complaints-to="usenet@ciao.gmane.io" Cc: didibus@gmail.com, 49803@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 11 14:03:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDmww-0004G7-1o for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Aug 2021 14:03:10 +0200 Original-Received: from localhost ([::1]:42962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDmwv-0005CC-2R for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Aug 2021 08:03:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53534) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDmwo-0005Bz-H6 for bug-gnu-emacs@gnu.org; Wed, 11 Aug 2021 08:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50385) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDmwo-0000dS-AQ for bug-gnu-emacs@gnu.org; Wed, 11 Aug 2021 08:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDmwo-0008SA-4D for bug-gnu-emacs@gnu.org; Wed, 11 Aug 2021 08:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Aug 2021 12:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49803 X-GNU-PR-Package: emacs Original-Received: via spool by 49803-submit@debbugs.gnu.org id=B49803.162868337432482 (code B ref 49803); Wed, 11 Aug 2021 12:03:02 +0000 Original-Received: (at 49803) by debbugs.gnu.org; 11 Aug 2021 12:02:54 +0000 Original-Received: from localhost ([127.0.0.1]:33698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDmwg-0008Rq-EQ for submit@debbugs.gnu.org; Wed, 11 Aug 2021 08:02:54 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDmwe-0008Rc-P5 for 49803@debbugs.gnu.org; Wed, 11 Aug 2021 08:02:53 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55990) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDmwZ-0000TB-AY; Wed, 11 Aug 2021 08:02:47 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4242 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDmwY-0004In-O1; Wed, 11 Aug 2021 08:02:47 -0400 In-Reply-To: <87v94cqqop.fsf@gmail.com> (message from Robert Pluim on Wed, 11 Aug 2021 11:24:54 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:211577 Archived-At: > From: Robert Pluim > Cc: didibus@gmail.com, 49803@debbugs.gnu.org > Date: Wed, 11 Aug 2021 11:24:54 +0200 > > I was unclear: I hadn't figured out how to get the relevant terminal > programs to generate either wheel-up/down or mouse-4/5. It looks like > iterm2 sends mouse events using the xterm protocol, which xt-mouse > then posts as mouse-4/5 events. I guess we could modify xt-mouse to > optionally send them as wheel-up/down instead, but that feels like a hack. Does the xterm protocol allow to report wheel events, or does it only allow to report mouse-click events? If the latter, I don't see how you could map the events in any way different from what we have now, i.e. via a user-controlled setting. > Eli> I guess the difference is between systems where the GUI API tells us > Eli> explicitly whether its a wheel-up/down event, and systems where we > Eli> just get "button number N" event. Or something like that. > > This is using emacs -nw, so the gui api is not involved. The "GUI" part is not important in what I wrote, you can replace it with "UI" or even with nothing. I was talking about the APIs we use to access the mouse events.