diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el index 3401b796cac..58d2ef650a1 100644 --- a/lisp/tab-bar.el +++ b/lisp/tab-bar.el @@ -1456,10 +1456,18 @@ tab-bar-select-restore-windows "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. By default, either a random buffer is displayed instead of -the killed buffer, or the window gets deleted. However, with the help -of `window-restore-killed-buffer-windows' it's possible to handle such -situations better by displaying an information about the killed buffer." +that window. By default, a placeholder buffer is displayed in that +window to give the user information about the killed buffer; this +option can also be set to: + + * nil: no special handling; `set-window-configuration' will + decide what to do with the window, e.g. make it display + another buffer; + + * a function: display another buffer in that window, and pass that + buffer to the function. See + `window-restore-killed-buffer-windows' for the calling + convention." :type '(choice (const :tag "No special handling" nil) (const :tag "Show placeholder buffers" tab-bar-select-restore-windows)