Function: tab-bar-switch-to-next-tab
tab-bar-switch-to-next-tab is an interactive and byte-compiled
function defined in tab-bar.el.gz.
Signature
(tab-bar-switch-to-next-tab &optional ARG)
Documentation
Switch to ARGth next tab.
Interactively, ARG is the prefix numeric argument and defaults to 1.
Key Bindings
Aliases
Source Code
;; Defined in /usr/src/emacs/lisp/tab-bar.el.gz
(defun tab-bar-switch-to-next-tab (&optional arg)
"Switch to ARGth next tab.
Interactively, ARG is the prefix numeric argument and defaults to 1."
(interactive "p")
(unless (integerp arg)
(setq arg 1))
(let* ((tabs (funcall tab-bar-tabs-function))
(from-index (or (tab-bar--current-tab-index tabs) 0))
(to-index (mod (+ from-index arg) (length tabs))))
(tab-bar-select-tab (1+ to-index))))