Function: tab-close
tab-close is a function alias and interactive for tab-bar-close-tab,
defined in tab-bar.el.gz.
Signature
(tab-close &optional TAB-NUMBER TO-NUMBER)
Documentation
Close the tab specified by its absolute position TAB-NUMBER.
If no TAB-NUMBER is specified, then close the current tab and switch
to the tab specified by tab-bar-close-tab-select.
Interactively, TAB-NUMBER is the prefix numeric argument, and defaults to 1.
TAB-NUMBER counts from 1.
Optional TO-NUMBER could be specified to override the value of
tab-bar-close-tab-select programmatically with a position
of an existing tab to select after closing the current tab.
TO-NUMBER counts from 1.
The functions in tab-bar-tab-prevent-close-functions will be
run to determine whether or not to close the tab.
Just before the tab is closed, the functions in
tab-bar-tab-pre-close-functions will be run. The base behavior
for the last tab on a frame is determined by
tab-bar-close-last-tab-choice.
Key Bindings