From 330ccd33681b3a9e973114e5fd964cc5a319ce98 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Tue, 21 Apr 2026 19:30:03 +0300 Subject: [PATCH] Rebind 'tab-bar-mouse-close-tab' from to * lisp/tab-bar.el (tab-bar-map): Unbind from 'ignore'. Bind 'tab-bar-mouse-close-tab' to instead of (bug#80858). --- etc/NEWS | 4 ++++ lisp/tab-bar.el | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index e03e635b11f..ccad04ae371 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -603,6 +603,10 @@ This hook allows you to operate on a reopened tab. This is useful when you define custom tab parameters that may need adjustment when a tab is restored, and avoids advice. +--- +*** Tabs are closed now on releasing the middle mouse button. +Previously, closing the tab-bar's tabs was on pressing the button. + --- *** New user option 'tab-bar-define-keys'. This controls which key bindings tab-bar creates. Values are t, the diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el index 5dd61cdee29..15ef7967344 100644 --- a/lisp/tab-bar.el +++ b/lisp/tab-bar.el @@ -565,8 +565,7 @@ appropriate." "" #'tab-bar-mouse-down-1 "" #'tab-bar-mouse-move-tab "" #'tab-bar-mouse-1 - "" #'tab-bar-mouse-close-tab - "" #'ignore + "" #'tab-bar-mouse-close-tab "" #'tab-bar-mouse-context-menu "" #'tab-previous