GNU bug report logs - #52019
28.0.60; tab-bar is not updated when buffer is killed

Previous Next

Package: emacs;

Reported by: Lars Ljung <lars <at> matholka.se>

Date: Sun, 21 Nov 2021 13:34:01 UTC

Severity: normal

Tags: wontfix

Found in version 28.0.60

Fixed in version 29.0.50

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 52019 in the body.
You can then email your comments to 52019 AT debbugs.gnu.org in the normal way.

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#52019; Package emacs. (Sun, 21 Nov 2021 13:34:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lars Ljung <lars <at> matholka.se>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 21 Nov 2021 13:34:01 GMT) Full text and rfc822 format available.

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

From: Lars Ljung <lars <at> matholka.se>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.60; tab-bar is not updated when buffer is killed
Date: Sun, 21 Nov 2021 14:33:37 +0100
When a buffer is killed it seams like only the active tab is updated. 
E.g. if a buffer that is shown in another tab is killed from the buffer 
list, then the tab-bar will still show that buffer name. The name of 
that tab will be updated when you switch to it.

This bug is also present on Emacs 27 and on master.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52019; Package emacs. (Sun, 21 Nov 2021 17:45:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: Lars Ljung <lars <at> matholka.se>
Cc: 52019 <at> debbugs.gnu.org
Subject: Re: bug#52019: 28.0.60; tab-bar is not updated when buffer is killed
Date: Sun, 21 Nov 2021 19:30:13 +0200
> When a buffer is killed it seams like only the active tab is
> updated. E.g. if a buffer that is shown in another tab is killed from the
> buffer list, then the tab-bar will still show that buffer name.
>
> This bug is also present on Emacs 27 and on master.

This is not a bug, but a feature.  The tabs on the tab-bar
are like bookmarks that represent the state that was current
at the time of switching from the active tab that freezes
its state as a "bookmark".  The tab name should always
show the old buffer names, so the user can see what
buffers were displayed in that tab.

All web browsers work the same way.  When some web server
changes the title of the web page opened in the web browser
in a tab, you need to switch to this tab and reload the page
to see a new title in the tab name.  Would you send such a bug
report to a web browser's bug tracker too?

If you don't like this, you can rename the tab manually to a fixed name.
This is a feature that even web browsers don't have.

Or even better: never kill buffers displayed in another tab,
checking with 'tab-bar-get-buffer-tab' whether the buffer
can be killed, or only buried.

> The name of that tab will be updated when you switch to it.

Ideally, the tab should show some placeholder for the killed buffer
after the user switches to it, so the tab name should keep its
original name.  This would less confusing than showing some random
buffer instead of the killed buffer.  But this is a separate feature
that could be discussed in a separate request.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52019; Package emacs. (Mon, 22 Nov 2021 18:33:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: Lars Ljung <lars <at> matholka.se>
Cc: 52019 <at> debbugs.gnu.org
Subject: Re: bug#52019: 28.0.60; tab-bar is not updated when buffer is killed
Date: Mon, 22 Nov 2021 20:30:30 +0200
tags 52019 wontfix
close 52019 29.0.50
quit

>> The name of that tab will be updated when you switch to it.
>
> Ideally, the tab should show some placeholder for the killed buffer
> after the user switches to it, so the tab name should keep its
> original name.  This would less confusing than showing some random
> buffer instead of the killed buffer.  But this is a separate feature
> that could be discussed in a separate request.

The same problem exists with all other uses of window-configuration.
One example: the desktop saves all windows with their buffers.
If a file was deleted before restoring the desktop,
or a buffer saved to the desktop was non-persistent,
then the desktop just deletes the window where the old buffer
was displayed, or replaces the old buffer in the window
with some other random buffer.  This loses the window layout
carefully created by the user.

So instead of replacing the name of the killed buffer
in the tab name with some other random buffer name,
a more proper solution is to keep some placeholder
in the window where the buffer was displayed.
This is a bigger task, so a new request could be created
to implement it.




Added tag(s) wontfix. Request was from Juri Linkov <juri <at> linkov.net> to control <at> debbugs.gnu.org. (Mon, 22 Nov 2021 18:33:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 29.0.50, send any further explanations to 52019 <at> debbugs.gnu.org and Lars Ljung <lars <at> matholka.se> Request was from Juri Linkov <juri <at> linkov.net> to control <at> debbugs.gnu.org. (Mon, 22 Nov 2021 18:33:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 21 Dec 2021 12:24:05 GMT) Full text and rfc822 format available.

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

Previous Next


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