From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#41343: tab-bar-mode: Close tab on mouse-2 click Date: Wed, 20 May 2020 00:54:15 +0300 Organization: LINKOV.NET Message-ID: <87eerfd20o.fsf@mail.linkov.net> References: <87imgugqiv.fsf@mail.linkov.net> <83pnb29dm3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="121172"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 41343@debbugs.gnu.org, stefankangas@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 20 00:26:19 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jbAgk-000VPG-PI for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 May 2020 00:26:18 +0200 Original-Received: from localhost ([::1]:53590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jbAgj-0004ml-Pp for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 May 2020 18:26:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbAgW-0004Sj-EZ for bug-gnu-emacs@gnu.org; Tue, 19 May 2020 18:26:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39810) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jbAgW-0001Wq-47 for bug-gnu-emacs@gnu.org; Tue, 19 May 2020 18:26:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jbAgW-0003sz-1Y for bug-gnu-emacs@gnu.org; Tue, 19 May 2020 18:26:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 May 2020 22:26:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41343 X-GNU-PR-Package: emacs Original-Received: via spool by 41343-submit@debbugs.gnu.org id=B41343.158992712014823 (code B ref 41343); Tue, 19 May 2020 22:26:04 +0000 Original-Received: (at 41343) by debbugs.gnu.org; 19 May 2020 22:25:20 +0000 Original-Received: from localhost ([127.0.0.1]:51343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbAfo-0003r1-1W for submit@debbugs.gnu.org; Tue, 19 May 2020 18:25:20 -0400 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:48311) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbAfk-0003qU-CV for 41343@debbugs.gnu.org; Tue, 19 May 2020 18:25:16 -0400 X-Originating-IP: 91.129.97.200 Original-Received: from mail.gandi.net (m91-129-97-200.cust.tele2.ee [91.129.97.200]) (Authenticated sender: juri@linkov.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 4BBC260006; Tue, 19 May 2020 22:25:08 +0000 (UTC) In-Reply-To: <83pnb29dm3.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 18 May 2020 05:32:52 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:180621 Archived-At: >> > 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 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.: but clicking any mouse button on the tab-bar emits events like: