all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: martin rudalics <rudalics@gmx.at>
Cc: 49247@debbugs.gnu.org, s930054123yaoyao@gmail.com
Subject: bug#49247: 28.0.50; [Feature Request] Make tab-bar-lines dragable
Date: Thu, 08 Jul 2021 01:54:10 +0300	[thread overview]
Message-ID: <87v95ld9bh.fsf@mail.linkov.net> (raw)
In-Reply-To: <b913ea4a-cdc6-a07f-dd24-078af5b2bc43@gmx.at> (martin rudalics's message of "Wed, 7 Jul 2021 09:31:16 +0200")

>> Why buffer's mode keymap affects the behavior of clicking
>> on the tab-line?
> [...]
>> The difference is that in the broken case it says:
>>
>>    "Those are influenced by `mouse-1-click-follows-link'"
>>
>> and translates <mouse-1> to <mouse-2>, where <mouse-2> is a valid
>> binding that closes the tab.  But translating <mouse-1> to <mouse-2>
>> is a bug, I don't know how to fix it.
>
> It might happen in `mouse--click-1-maybe-follows-link' but that is
> written in terms of `pcase' which I cannot read fluently.  Honestly,
> key translations are a mystery to me.
>
> I see two possibilities to fix this without further hassle.  Either I
> revert my changes

Please don't revert your changes: 'drag-with-tab-line' is a valid feature.

> or you give up on binding mouse-1 and mouse-2 to different actions.

I can't give up on binding mouse-2 to closing the tab
because this is what browsers do where mouse-2 closes the tab.

> I think that the mouse-2 binding at hand is not
> useful because not all people can use it reliably (for example here the
> scroll wheel may always slip slightly before pressing it) and all your
> remaining keymaps bind mouse-1 and mouse-2 to the same action.

Drew suggested to make an exception for the tab-bar.
This could solve the problem when the exception
will be added somewhere in mouse--click-1-maybe-follows-link.

> BTW, I think that the mouse wheel should scroll the tab-line,
> if applicable.

The mouse wheel already scrolls the tab-line when it's long enough.





  parent reply	other threads:[~2021-07-07 22:54 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-28  3:57 bug#49247: 28.0.50; [Feature Request] Make tab-bar-lines dragable Liang-Jie Lee
2021-06-28 19:46 ` Juri Linkov
     [not found]   ` <CAB+tG3vqkAC+TDtoTDP=REnG+ODVky35UCaQVTfbiN5m34xL5w@mail.gmail.com>
2021-06-29  8:30     ` Juri Linkov
2021-06-29 11:53       ` Eli Zaretskii
2021-06-29 13:16         ` martin rudalics
2021-06-30 11:54           ` Eli Zaretskii
2021-07-01  7:53             ` martin rudalics
2021-07-01  9:03               ` Eli Zaretskii
2021-07-02  9:03                 ` martin rudalics
2021-07-04 20:32                   ` Juri Linkov
2021-06-30 19:37           ` Juri Linkov
2021-07-01  7:54             ` martin rudalics
2021-07-01  9:05               ` Eli Zaretskii
2021-07-04 20:37                 ` Juri Linkov
2021-07-04 21:09                   ` bug#49247: [External] : " Drew Adams
2021-07-05  2:26                   ` Eli Zaretskii
2021-07-05  9:06                   ` martin rudalics
2021-07-05 20:54                     ` Juri Linkov
2021-07-06 16:29                       ` martin rudalics
2021-07-06 16:41                         ` Juri Linkov
2021-07-07  7:31                           ` martin rudalics
2021-07-07 14:02                             ` bug#49247: [External] : " Drew Adams
2021-07-07 22:54                             ` Juri Linkov [this message]
2021-07-08  1:32                               ` Drew Adams
2021-07-08 17:51                         ` Juri Linkov
2021-06-29 20:41         ` Juri Linkov

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=87v95ld9bh.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=49247@debbugs.gnu.org \
    --cc=rudalics@gmx.at \
    --cc=s930054123yaoyao@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.