GNU bug report logs - #41343
tab-bar-mode: Close tab on mouse-2 click

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefankangas <at> gmail.com>

Date: Sun, 17 May 2020 04:06:02 UTC

Severity: wishlist

Tags: fixed, patch

Merged with 41342

Fixed in version 28.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 41343 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 41343 <at> debbugs.gnu.org, stefankangas <at> gmail.com
Subject: Re: bug#41343: tab-bar-mode: Close tab on mouse-2 click
Date: Wed, 20 May 2020 00:54:15 +0300
>> > Please consider adding a binding to close a tab in tab-bar-mode by
>> > clicking on it using the middle mouse button (mouse-2).
>> 
>> Like in bug#41342, when someone will find a way to emit the <mouse-2> event
>> on the tab-bar,  I'll immediately bind it to the tab closing command.
>
> What do you mean by "find a way"?  What is the problem here?

The problem is to figure out how to force clicking different
mouse buttons to emit the corresponding mouse event.  Currently
clicking on the tab-line correctly emits such events, e.g.:

  <tab-line> <mouse-1>
  <tab-line> <mouse-2>

but clicking any mouse button on the tab-bar emits events like:

  <tab-bar> <tab-1>
  <tab-bar> <tab-2>




This bug report was last modified 3 years and 291 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.