Function: find-file-other-tab
find-file-other-tab is an interactive and byte-compiled function
defined in tab-bar.el.gz.
Signature
(find-file-other-tab FILENAME &optional WILDCARDS)
Documentation
Edit file FILENAME, in another tab.
Like C-x 5 C-f (find-file-other-frame) (which see), but creates a new tab.
Interactively, prompt for FILENAME.
If WILDCARDS is non-nil, FILENAME can include widcards, and all matching
files will be visited.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/tab-bar.el.gz
(defun find-file-other-tab (filename &optional wildcards)
"Edit file FILENAME, in another tab.
Like \\[find-file-other-frame] (which see), but creates a new tab.
Interactively, prompt for FILENAME.
If WILDCARDS is non-nil, FILENAME can include widcards, and all matching
files will be visited."
(interactive
(find-file-read-args "Find file in other tab: "
(confirm-nonexistent-file-or-buffer)))
(let ((value (find-file-noselect filename nil nil wildcards)))
(if (listp value)
(progn
(setq value (nreverse value))
(switch-to-buffer-other-tab (car value))
(mapc #'switch-to-buffer (cdr value))
value)
(switch-to-buffer-other-tab value))))