Function: switch-to-buffer-other-tab
switch-to-buffer-other-tab is an interactive and byte-compiled
function defined in tab-bar.el.gz.
Signature
(switch-to-buffer-other-tab BUFFER-OR-NAME)
Documentation
Switch to buffer BUFFER-OR-NAME in another tab.
Like C-x 5 b (switch-to-buffer-other-frame) (which see), but creates a new tab.
Interactively, prompt for the buffer to switch to.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/tab-bar.el.gz
(defun switch-to-buffer-other-tab (buffer-or-name &optional _norecord)
"Switch to buffer BUFFER-OR-NAME in another tab.
Like \\[switch-to-buffer-other-frame] (which see), but creates a new tab.
Interactively, prompt for the buffer to switch to."
(declare (advertised-calling-convention (buffer-or-name) "28.1"))
(interactive
(list (read-buffer-to-switch "Switch to buffer in other tab: ")))
(pop-to-buffer (window-normalize-buffer-to-switch-to buffer-or-name)
'((display-buffer-in-tab)
(inhibit-same-window . nil))))