Variable: tab-line-close-tab-function

tab-line-close-tab-function is a customizable variable defined in tab-line.el.gz.

Value

bury-buffer

Documentation

What to do upon closing a tab on the tab line.

If bury-buffer, put the tab's buffer at the end of the list of all buffers, which effectively hides the buffer's tab from the tab line. If kill-buffer, kills the tab's buffer. When a function, it is called with the tab as its argument. This option is useful when tab-line-tabs-function has the value tab-line-tabs-window-buffers.

This variable was added, or its default value changed, in Emacs 27.1.

Source Code

;; Defined in /usr/src/emacs/lisp/tab-line.el.gz
(defcustom tab-line-close-tab-function 'bury-buffer
  "What to do upon closing a tab on the tab line.
If `bury-buffer', put the tab's buffer at the end of the list of all
buffers, which effectively hides the buffer's tab from the tab line.
If `kill-buffer', kills the tab's buffer.
When a function, it is called with the tab as its argument.
This option is useful when `tab-line-tabs-function' has the value
`tab-line-tabs-window-buffers'."
  :type '(choice (const :tag "Bury buffer" bury-buffer)
                 (const :tag "Kill buffer" kill-buffer)
                 (function :tag "Function"))
  :group 'tab-line
  :version "27.1")