From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Didier 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: Sat, 31 Jul 2021 19:27:58 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000019613905c876347d" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21244"; mail-complaints-to="usenet@ciao.gmane.io" To: 49803@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 01 04:29:19 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 1mA1E7-0005Iy-Fr for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Aug 2021 04:29:19 +0200 Original-Received: from localhost ([::1]:59954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mA1E6-00012l-Bz for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 31 Jul 2021 22:29:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mA1Dq-00010c-Qg for bug-gnu-emacs@gnu.org; Sat, 31 Jul 2021 22:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51950) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mA1Dq-0003Yn-JI for bug-gnu-emacs@gnu.org; Sat, 31 Jul 2021 22:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mA1Dq-0002bg-8Q for bug-gnu-emacs@gnu.org; Sat, 31 Jul 2021 22:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Didier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Aug 2021 02:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49803 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16277848959965 (code B ref -1); Sun, 01 Aug 2021 02:29:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Aug 2021 02:28:15 +0000 Original-Received: from localhost ([127.0.0.1]:35263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mA1D5-0002af-Ga for submit@debbugs.gnu.org; Sat, 31 Jul 2021 22:28:15 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:46488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mA1D3-0002aW-9u for submit@debbugs.gnu.org; Sat, 31 Jul 2021 22:28:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mA1D2-0000NG-Q5 for bug-gnu-emacs@gnu.org; Sat, 31 Jul 2021 22:28:12 -0400 Original-Received: from mail-yb1-xb2c.google.com ([2607:f8b0:4864:20::b2c]:45773) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mA1D1-00030e-1p for bug-gnu-emacs@gnu.org; Sat, 31 Jul 2021 22:28:12 -0400 Original-Received: by mail-yb1-xb2c.google.com with SMTP id a201so6408774ybg.12 for ; Sat, 31 Jul 2021 19:28:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=GxH+6t8VyWAV9Sw6mFzAvpbIRTAxiHTFoVxJOIm3S80=; b=CfaGjKbfOfX2KhQUWHcVrmx9aI6iDejJZYGk9x8O2iRx6wRiUkBgpMX4fAnryY13Zz yBKOezoidvbnO1m50fyYdCwcByoyE4bgN/Do8vPEoHI1wBzIJniOo7e2F+VvexPCmcl2 PfM00NHpSyBmEvMK+hpRUujkLrtsG5vpwO+PpX+KF7+iZhwXPdStohE6cL+T5Zh/NP5i Wv3PXecjtwEM35ZgMfW7alD7IYbQNJrNd5v30DfehunMZa8ooPTwH2egZ97Ovc00ZEp7 iA7Y0ynxg1ex16HMirUP9gpqdnzEnZyf8SQ5F32NS1XSuCtEZQJn3AusgbvJd6rVBqkT dbSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=GxH+6t8VyWAV9Sw6mFzAvpbIRTAxiHTFoVxJOIm3S80=; b=hySRaAup//FY1bea385EiFjtQSKDS+fw86Y2XM8ehJXXTbHYrMMYgkbSsud6F+hJ+5 icogl/SYM/SDqPEU72hqPckt7yl7t7d8UymdzGVsfKptDr5lxp/BsLYTeLJf1CpeS9cu JrJTN7lX+S9ASThdEvVmqiLJx41p0FsSr2PxoOzimBUoFAyPEeTL8XeOcERZRW6HPmhi jCDztwM/GTK3gxbDiVe2SEahR3vpM3Sa0vW6upT5ZCK7vO0Y/zJTt3K26QV5pGxWJN3w AlD6FwG0Ree/qFg1DVu7TqGVF8d5MFyJ0JjY2gEiIXWtesHev2Gna7RFe3f6UBoC0zPL FI+w== X-Gm-Message-State: AOAM530CdZ9jQtDEEJEXMBCO0FKqz14UBIPEYEiMbRdA72MfcquR+nV0 oCJtlLsF9ozvIxUISH+XIolmE0dz+ICk5nO7oCBUpv7m7T4Bsw== X-Google-Smtp-Source: ABdhPJyw/1J5wIrRa5YOUoZJqsypERSze7LXwVccNXSwFHEiXn5j+utwls8B0xXJFm5ekQFZTp6jOmnY+MEpAEfRzyE= X-Received: by 2002:a25:a527:: with SMTP id h36mr13202825ybi.104.1627784889326; Sat, 31 Jul 2021 19:28:09 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::b2c; envelope-from=didibus@gmail.com; helo=mail-yb1-xb2c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:211033 Archived-At: --00000000000019613905c876347d Content-Type: text/plain; charset="UTF-8" I'm on a MacBook Pro with macOS Big Sur, and on both the laptop trackpad and with my plugged in USB mouse, the wheel or 2-finger up/down on trackpad, is reported to Emacs when in terminal as mouse-4 and mouse-5. That means that scroll doesn't work in Terminal.app or in iTerm2 on MAC, since mouse-4 and mouse-5 are not bound. In the GUI Mac it works, because it gets reported as wheel-up and wheel-down. My thought is maybe here https://github.com/emacs-mirror/emacs/blob/master/lisp/mwheel.el#L54 there should be an additional check for if its running with a window-system or not? In GNU Emacs 27.2 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2021-03-27 built on builder10-14.porkrind.org Windowing system distributor 'Apple', version 10.3.2022 System Description: macOS 11.3.1 --00000000000019613905c876347d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm on a MacBook Pro with macOS Big Sur, and on both the laptop = trackpad
and with my plugged in USB mouse,= the wheel or 2-finger up/down on
trackpad= , is reported to Emacs when in terminal as mouse-4 and mouse-5.
That means that scroll doesn't work in Terminal.a= pp or in iTerm2 on MAC,
since mouse-4 and = mouse-5 are not bound.

In the GUI Mac it works, because it gets reported as whee= l-up and
wheel-down.

My thought is maybe here
https://github.com/emacs-mirror/emacs= /blob/master/lisp/mwheel.el#L54
there = should be an additional check for if its running with a
window-system or not?


In GNU = Emacs 27.2 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 1= 0.14.6 (Build 18G95))
of 2021-03-27 built = on builder10-14.porkrind.org
Windowing system distributor 'Apple= ', version 10.3.2022
System Descriptio= n:=C2=A0=C2=A0macO= S 11.3.1
--00000000000019613905c876347d--