all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Robert Pluim <rpluim@gmail.com>
Cc: didibus@gmail.com, 49803@debbugs.gnu.org
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 20:38:18 +0300	[thread overview]
Message-ID: <83h7fvevat.fsf@gnu.org> (raw)
In-Reply-To: <87mtpnrjok.fsf@gmail.com> (message from Robert Pluim on Wed, 11 Aug 2021 19:10:51 +0200)

> From: Robert Pluim <rpluim@gmail.com>
> Cc: didibus@gmail.com,  49803@debbugs.gnu.org
> Date: Wed, 11 Aug 2021 19:10:51 +0200
> 
> Something like this. We can discuss if xterm-mouse-map-buttons should
> default to t on ns-win or not. I think it should, because then using
> the mouse wheel with builtin and external trackpads becomes:
> 
> (require 'mwheel)
> (require 'mouse)
> (xterm-mouse-mode t)
> (mouse-wheel-mode t)
> 
> with no other configuration required.
> 
> diff --git a/lisp/xt-mouse.el b/lisp/xt-mouse.el
> index 72faff8101..7906a6a024 100644
> --- a/lisp/xt-mouse.el
> +++ b/lisp/xt-mouse.el
> @@ -42,6 +42,28 @@
>  
>  (defvar xterm-mouse-debug-buffer nil)
>  
> +(defcustom xterm-mouse-map-buttons
> +  (if (featurep 'ns-win)
> +      t
> +    nil)
> +  "Non-nil if xterm should perfom mouse button mappings.
> +Will use `xterm-mouse-map-buttons-alist' for the mapping.
> +Defaults to t when using macOS for consistency with 'mwheel'."
> +  :type 'boolean
> +  :version "28.1"
> +  :group 'xterm)

So you are saying that by moving this from mwheel.el, we avoid the
danger of using the wrong mapping on TTY frames on macOS?





  reply	other threads:[~2021-08-11 17:38 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-01  2:27 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 Didier
2021-08-01  6:18 ` Eli Zaretskii
2021-08-02  6:44   ` Didier
2021-08-02 11:21     ` Eli Zaretskii
2021-08-09 10:29       ` Robert Pluim
2021-08-10 12:44         ` Eli Zaretskii
2021-08-11  9:24           ` Robert Pluim
2021-08-11 12:03             ` Eli Zaretskii
2021-08-11 14:59               ` Robert Pluim
2021-08-11 16:41                 ` Eli Zaretskii
2021-08-11 17:10                   ` Robert Pluim
2021-08-11 17:38                     ` Eli Zaretskii [this message]
2021-08-12  7:48                       ` Robert Pluim
2021-08-12  8:11                         ` Eli Zaretskii
2021-08-12  9:54                           ` Robert Pluim
2022-08-22 10:38                     ` Lars Ingebrigtsen
2022-08-22 11:59                       ` Robert Pluim
2022-08-22 12:03                         ` Lars Ingebrigtsen
2022-08-22 12:12                       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-22 12:14                         ` Lars Ingebrigtsen
2022-08-22 13:14                           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83h7fvevat.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=49803@debbugs.gnu.org \
    --cc=didibus@gmail.com \
    --cc=rpluim@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.