GNU bug report logs - #44397
28.0.50; tab-bar-mode: tab-switcher creates a new tab every time

Previous Next

Package: emacs;

Reported by: Zhiwei Chen <condy0919 <at> gmail.com>

Date: Mon, 2 Nov 2020 18:04:02 UTC

Severity: wishlist

Merged with 38624, 38680, 38681, 38683

Found in versions 27.0.50, 28.0.50

To reply to this bug, email your comments to 44397 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#44397; Package emacs. (Mon, 02 Nov 2020 18:04:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Zhiwei Chen <condy0919 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 02 Nov 2020 18:04:02 GMT) Full text and rfc822 format available.

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

From: Zhiwei Chen <condy0919 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; tab-bar-mode: tab-switcher creates a new tab every time
Date: Tue, 03 Nov 2020 02:03:25 +0800
,----[ C-h f tab-switcher RET ]
| tab-switcher is an interactive compiled Lisp function in ‘tab-bar.el’.
| 
| It is bound to SPC t i, <normal-state> SPC t i.
| 
| (tab-switcher)
| 
|   Probably introduced at or before Emacs version 27.1.
| 
| Display a list of named window configurations.
| The list is displayed in the buffer ‘*Tabs*’.
| It’s placed in the center of the frame to resemble a window list
| displayed by a window switcher in some window managers on Alt+Tab.
| 
| In this list of window configurations you can delete or select them.
| Type ? after invocation to get help on commands available.
| Type q to remove the list of window configurations from the display.
| 
| The first column shows ‘D’ for a window configuration you have
| marked for deletion.
`----

The docstring doesn't say it will create a new tab but a
`tab-bar-new-tab' call will be made eventually. It's like that `ibuffer'
will create a new (dummy) buffer (not the special *Ibuffer* buffer). Any
reasons on that?

-- 
Zhiwei Chen




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44397; Package emacs. (Mon, 02 Nov 2020 21:44:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: Zhiwei Chen <condy0919 <at> gmail.com>
Cc: 44397 <at> debbugs.gnu.org
Subject: Re: bug#44397: 28.0.50; tab-bar-mode: tab-switcher creates a new
 tab every time
Date: Mon, 02 Nov 2020 23:30:38 +0200
> ,----[ C-h f tab-switcher RET ]
> The docstring doesn't say it will create a new tab but a
> `tab-bar-new-tab' call will be made eventually. It's like that `ibuffer'
> will create a new (dummy) buffer (not the special *Ibuffer* buffer). Any
> reasons on that?

`ibuffer' is a good analogy: it creates the special *Ibuffer* buffer,
and the same way `tab-switcher' creates the special *Tabs* tab.

I agree that the docstring should say that it creates a new tab,
even though `ibuffer' doesn't say that it creates a new buffer.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44397; Package emacs. (Tue, 03 Nov 2020 09:39:02 GMT) Full text and rfc822 format available.

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

From: Condy Chen <condy0919 <at> gmail.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: 44397 <at> debbugs.gnu.org
Subject: Re: bug#44397: 28.0.50; tab-bar-mode: tab-switcher creates a new
 tab every time
Date: Tue, 03 Nov 2020 17:37:55 +0800
> `ibuffer' is a good analogy: it creates the special *Ibuffer* buffer,
> and the same way `tab-switcher' creates the special *Tabs* tab.


The problem is `tab-switcher' never reuses the *Tabs* tab and always create a new one. After N `tab-switcher' calls, there are N additional tabs created if user has not deleted anyone.  

> I agree that the docstring should say that it creates a new tab,
> even though `ibuffer' doesn't say that it creates a new buffer.



Looks like the behavisor is expected?

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44397; Package emacs. (Tue, 03 Nov 2020 19:25:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: Condy Chen <condy0919 <at> gmail.com>
Cc: 44397 <at> debbugs.gnu.org
Subject: Re: bug#44397: 28.0.50; tab-bar-mode: tab-switcher creates a new
 tab every time
Date: Tue, 03 Nov 2020 21:23:44 +0200
merge 44397 38624
thanks

>> `ibuffer' is a good analogy: it creates the special *Ibuffer* buffer,
>> and the same way `tab-switcher' creates the special *Tabs* tab.
>
> The problem is `tab-switcher' never reuses the *Tabs* tab and always
> create a new one.  After N `tab-switcher' calls, there are
> N additional tabs created if user has not deleted anyone.
>
>> I agree that the docstring should say that it creates a new tab,
>> even though `ibuffer' doesn't say that it creates a new buffer.
>
> Looks like the behavisor is expected?

It seems what you need is not tab-switcher, but the exact analog of
`ibuffer' to manage tabs the same way as `ibuffer' manages buffers.

Please see https://debbugs.gnu.org/38680 and https://debbugs.gnu.org/38624
where such `tab-list' is being developed.




Severity set to 'wishlist' from 'normal' Request was from Juri Linkov <juri <at> linkov.net> to control <at> debbugs.gnu.org. (Tue, 03 Nov 2020 19:34:01 GMT) Full text and rfc822 format available.

Forcibly Merged 38624 38680 38681 38683 44397. Request was from Juri Linkov <juri <at> linkov.net> to control <at> debbugs.gnu.org. (Tue, 03 Nov 2020 19:34:01 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 223 days ago.

Previous Next


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