unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#52019: 28.0.60; tab-bar is not updated when buffer is killed
@ 2021-11-21 13:33 Lars Ljung
  2021-11-21 17:30 ` Juri Linkov
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ljung @ 2021-11-21 13:33 UTC (permalink / raw)
  To: 52019

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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#52019: 28.0.60; tab-bar is not updated when buffer is killed
  2021-11-21 13:33 bug#52019: 28.0.60; tab-bar is not updated when buffer is killed Lars Ljung
@ 2021-11-21 17:30 ` Juri Linkov
  2021-11-22 18:30   ` Juri Linkov
  0 siblings, 1 reply; 3+ messages in thread
From: Juri Linkov @ 2021-11-21 17:30 UTC (permalink / raw)
  To: Lars Ljung; +Cc: 52019

> 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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#52019: 28.0.60; tab-bar is not updated when buffer is killed
  2021-11-21 17:30 ` Juri Linkov
@ 2021-11-22 18:30   ` Juri Linkov
  0 siblings, 0 replies; 3+ messages in thread
From: Juri Linkov @ 2021-11-22 18:30 UTC (permalink / raw)
  To: Lars Ljung; +Cc: 52019

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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-22 18:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-21 13:33 bug#52019: 28.0.60; tab-bar is not updated when buffer is killed Lars Ljung
2021-11-21 17:30 ` Juri Linkov
2021-11-22 18:30   ` Juri Linkov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).