Function: tab-line-new-tab
tab-line-new-tab is an interactive and byte-compiled function defined
in tab-line.el.gz.
Signature
(tab-line-new-tab &optional EVENT)
Documentation
Add a new tab to the selected-window's tab line.
This command is usually invoked by clicking on the plus-shaped button on the tab line. Switching to another buffer also adds a new tab corresponding to the new buffer shown in the window.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/tab-line.el.gz
(defun tab-line-new-tab (&optional event)
"Add a new tab to the selected-window's tab line.
This command is usually invoked by clicking on the plus-shaped button
on the tab line. Switching to another buffer also adds a new tab
corresponding to the new buffer shown in the window."
(interactive (list last-nonmenu-event))
(if (functionp tab-line-new-tab-choice)
(funcall tab-line-new-tab-choice)
(let ((tab-line-tabs-buffer-groups mouse-buffer-menu-mode-groups))
(if (and (listp event)
(display-popup-menus-p)
(not tty-menu-open-use-tmm))
(mouse-buffer-menu event) ; like (buffer-menu-open)
;; tty menu doesn't support mouse clicks, so use tmm
(tmm-prompt (mouse-buffer-menu-keymap))))))