Subject: Re: bug#68235: 29.1.90; Switching tabs stops following process output in selected window

From: Eli Zaretskii <[email-masked]>
Date: Sat, 09 Mar 2024 10:35:01 +0200

> From: Juri Linkov <[email-masked]>
> Cc: [email-masked],  [email-masked]
> Date: Wed, 06 Mar 2024 20:03:50 +0200
> 
> > This doc string doesn't explain enough: it begs the question "what
> > does selecting a tab have to do with killing buffers?"
> 
> Here is a better docstring:
> 
> +(defcustom tab-bar-select-keep-windows-function #'tab-bar-select-keep-windows
> +  "Function that keeps windows after selecting a tab.
> +When a previously selected tab displayed a buffer that was later killed,
> +this function defines what to do with the window that displayed that buffer
> +after switching back to the previous tab.

Thanks, this is much more clear now.  I suggest a slight rewording:

    Function called when selecting a tab to handle windows whose buffer was killed.
  When a tab-bar tab displays a window whose buffer was killed since
  this tab was last selected, this function determines what to do with
  that window.

> +(defun tab-bar-select-keep-windows (_frame windows)
> +  "Display a placeholder buffer in the window with killed buffer.
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
"...in the window whose buffer was killed."

> +A button allows to restore a killed file buffer."

"A button in the window allows to restore the killed buffer, if
it was visiting a file."