Subject: Re: bug#79159: [PATCH] Do not display in the tab line tabs that are excluded.

From: Eli Zaretskii <[email-masked]>
Date: Tue, 05 Aug 2025 14:36:42 +0300

> From: Juri Linkov <[email-masked]>
> Cc: Elijah Gabe Pérez <[email-masked]>,
>   [email-masked]
> Date: Tue, 05 Aug 2025 09:28:30 +0300
> 
> > But I won't object to adding a knob to have the behavior you want, if
> > Juri agrees, and there are no other objections.  However, this must be
> > an opt-in behavior, by default off.
> 
> Better to make it opt-out because currently display of excluded buffers
> on the tab-line is too glitchy.  Example:
> 
> 0. emacs -Q
> 1. M-x global-tab-line-mode RET
> 2. C-x b foo RET
> 3. C-x b SPC *bar* RET
> 4. C-x <left>
>    Now the buffer name " *bar*" is visible on the tab-line.
> 5. C-x <left>
>    But now " *bar*" suddenly goes away.
> 
> This is because handling of excluded buffers is hard-coded
> in many window.el functions.
> 
> So not showing excluded buffers by default will avoid this snag.

If there are bugs with handling excluded buffers, I hope we can fix
them, instead of leaving them hidden behind a user option.  People who
will use that option will see those bugs exactly as all of the users
see them today, and they _will_ complain.

OTOH, since no one has yet complained about those bugs, perhaps
leaving this behavior be the default is not such a bad idea?