unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: martin rudalics <rudalics@gmx.at>
Cc: adam@alphapapa.net, emacs-devel@gnu.org, juri@linkov.net
Subject: Re: tab-bar: Defining another mouse-button binding?
Date: Sat, 11 Sep 2021 12:39:45 +0300	[thread overview]
Message-ID: <83sfybh2n2.fsf@gnu.org> (raw)
In-Reply-To: <9d435ece-ea6c-5459-2471-8fc0001520e1@gmx.at> (message from martin rudalics on Sat, 11 Sep 2021 10:39:01 +0200)

> Cc: adam@alphapapa.net, emacs-devel@gnu.org
> From: martin rudalics <rudalics@gmx.at>
> Date: Sat, 11 Sep 2021 10:39:01 +0200
> 
>  >> The real message text is
>  >>
>  >>    <nil> <wheel-down> is undefined
>  >>
>  >> and similarly for wheel-up.
>  >
>  > Thanks for clarification.  Actually, there is already such bindings:
>  >
>  >      (define-key map [wheel-up]    'tab-previous)
>  >      (define-key map [wheel-down]  'tab-next)
>  >
>  > So the problem is that it emits <nil> instead of <tab-bar>.
>  > And as I understand, the same <nil> is emitted on the tab-line
>  > instead of <tab-line> on GUI frames and on TTY frames.
> 
> With mouse wheel scrolls one has to be always prepared that the scroll
> is intended for one window while the mouse is positioned anywhere on
> your frame.

That's not the problem here, AFAICT.  The problem here, at least for
GUI frames, is that the code Juri wrote supports only mice that report
wheel events as button events.  That code doesn't support mice which
report true mouse-wheel events (so I guess NS is also affected?).  I'm
working on a fix.

I didn't yet look at the TTY frame case.



  reply	other threads:[~2021-09-11  9:39 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-07  9:37 tab-bar: Defining another mouse-button binding? Adam Porter
2021-09-08 18:12 ` Juri Linkov
2021-09-08 19:00   ` Adam Porter
2021-09-08 19:23     ` Juri Linkov
2021-09-09  7:53     ` Juri Linkov
2021-09-09 17:28       ` Eli Zaretskii
2021-09-09 18:58         ` Juri Linkov
2021-09-09 19:15           ` Eli Zaretskii
2021-09-09 19:19             ` Juri Linkov
2021-09-09 19:38               ` Eli Zaretskii
2021-09-10  6:36                 ` Juri Linkov
2021-09-10  7:05                   ` Eli Zaretskii
2021-09-10 16:19                     ` Juri Linkov
2021-09-10 17:59                       ` Eli Zaretskii
2021-09-11  8:39                       ` martin rudalics
2021-09-11  9:39                         ` Eli Zaretskii [this message]
2021-09-11 11:03                           ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83sfybh2n2.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=adam@alphapapa.net \
    --cc=emacs-devel@gnu.org \
    --cc=juri@linkov.net \
    --cc=rudalics@gmx.at \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).