GNU bug report logs - #59721
30.0.50; tab bar groups are not ordered properly

Previous Next

Package: emacs;

Reported by: Mickey Petersen <mickey <at> masteringemacs.org>

Date: Wed, 30 Nov 2022 14:08:02 UTC

Severity: normal

Found in version 30.0.50

Fixed in version 29.1

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mickey Petersen <mickey <at> masteringemacs.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: 59721 <at> debbugs.gnu.org
Subject: bug#59721: 30.0.50; tab bar groups are not ordered properly
Date: Wed, 30 Nov 2022 16:43:21 +0000
Juri Linkov <juri <at> linkov.net> writes:

>> 1. Enable tab-bar-mode and then alter tab-bar-format to show
>> groups. Something like this:
>>
>>   (setq tab-bar-format '(tab-bar-format-history
>> tab-bar-format-tabs-groups tab-bar-separator
>> tab-bar-format-add-tab))
>>
>> 2. Create three tabs: A, B, C.  Now switch to A and use M-x
>> tab-bar-change-tab-group and name it "foo".  Now switch to C and name
>> it "foo" also.
>>
>> 3. The tab bar groups are _not_ merged; with a large array of tab
>> bars, this causes endless confusion as there are man duplicae tab
>> groups.  You would expect a tab group to coalesce like tab group
>> members into a singular tab group --- that is after all their purpose.
>
> Thanks for the bug report.  We had a discussion about this problem
> in the past, and in the result we arrived at such a solution that the
> customizable variable `tab-bar-tab-post-change-group-functions' provides
> an option `tab-bar-move-tab-to-group', so that when you select it,
> then after changing the group name the tab is moved to its tab group.

I did not check if that solves it, but this issue -- and how I discovered it -- manifests itself when you use `display-buffer-in-[new]-tab' and set a tab group that way.

This can result in a large amount of distinct tab group entries for the same tab group; does `tab-bar-tab-post-change-group-functions' also resolve this?

Because just about anybody who'd use said display buffer action would find themselves in this predicament and that variable (and subsequently adding that function to it) is... unintuitive.





This bug report was last modified 2 years and 174 days ago.

Previous Next


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