From: Eshel Yaron <me@eshelyaron.com>
To: emacs-devel@gnu.org
Cc: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: master e720ba62193 1/2: (mouse-wheel-buttons): Map old-style wheel buttons to actual wheel events
Date: Tue, 09 Apr 2024 19:29:39 +0200 [thread overview]
Message-ID: <m1bk6ibg1o.fsf@dazzs-mbp.kpn> (raw)
In-Reply-To: <20240409143042.278CDC12C36@vcs2.savannah.gnu.org> (Stefan Monnier via Mailing list for Emacs changes's message of "Tue, 9 Apr 2024 10:30:41 -0400 (EDT)")
Hi Stefan,
Stefan Monnier writes:
> branch: master
> commit e720ba6219394d275dd741c5f17feea1ee0bf9af
> Author: Stefan Monnier <monnier@iro.umontreal.ca>
> Commit: Stefan Monnier <monnier@iro.umontreal.ca>
>
> (mouse-wheel-buttons): Map old-style wheel buttons to actual wheel events
>
> Change the handling of the old X11 convention that uses mouse-4/5/6/7
> events to represent wheel events: instead of asking downstream
> packages to use the `mouse-wheel-*-event` variables to know which events
> represent wheel events, use new var `mouse-wheel-buttons` to directly
> convert those events into the standard `wheel-up/down/left/right` events
> used everywhere else.
>
> This will simplify the work of packages which can thus just bind their
> commands to `wheel-up/down/left/right`.
[...]
> diff --git a/lisp/completion-preview.el b/lisp/completion-preview.el
> index a86c1ba1cc9..a1e0abe2e14 100644
> --- a/lisp/completion-preview.el
> +++ b/lisp/completion-preview.el
> @@ -139,9 +139,13 @@ If this option is nil, these commands do not display any message."
> ;; and vice versa!!
> "<wheel-up>" #'completion-preview-prev-candidate
> "<wheel-down>" #'completion-preview-next-candidate
> - (key-description (vector mouse-wheel-up-event))
> + (key-description (with-suppressed-warnings
> + ((obsolete mouse-wheel-up-event))
> + (vector mouse-wheel-up-event)))
> #'completion-preview-next-candidate
> - (key-description (vector mouse-wheel-down-event))
> + (key-description (with-suppressed-warnings
> + ((obsolete mouse-wheel-down-event))
> + (vector mouse-wheel-down-event)))
> #'completion-preview-prev-candidate)
I wonder whether/why we should keep the bindings that use
mouse-wheel-up/down-event here. Do I understand correctly that since we
already bind wheel-down/up directly, we should now be able to simply
remove these additional bindings?
Thanks,
Eshel
next parent reply other threads:[~2024-04-09 17:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <171267304154.21960.14298364323940508129@vcs2.savannah.gnu.org>
[not found] ` <20240409143042.278CDC12C36@vcs2.savannah.gnu.org>
2024-04-09 17:29 ` Eshel Yaron [this message]
2024-04-09 20:39 ` master e720ba62193 1/2: (mouse-wheel-buttons): Map old-style wheel buttons to actual wheel events Stefan Monnier
2024-04-10 18:35 ` Eshel Yaron
2024-04-10 18:52 ` Stefan Monnier
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=m1bk6ibg1o.fsf@dazzs-mbp.kpn \
--to=me@eshelyaron.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.