Function: tab-bar-switch-to-recent-tab

tab-bar-switch-to-recent-tab is an interactive and byte-compiled function defined in tab-bar.el.gz.

Signature

(tab-bar-switch-to-recent-tab &optional ARG)

Documentation

Switch to ARGth most recently visited tab.

Interactively, ARG is the prefix numeric argument and defaults to 1.

Key Bindings

Aliases

tab-recent

Source Code

;; Defined in /usr/src/emacs/lisp/tab-bar.el.gz
(defun tab-bar-switch-to-recent-tab (&optional arg)
  "Switch to ARGth most recently visited tab.
Interactively, ARG is the prefix numeric argument and defaults to 1."
  (interactive "p")
  (unless (integerp arg)
    (setq arg 1))
  (let ((tab-index (tab-bar--tab-index-recent arg)))
    (if tab-index
        (tab-bar-select-tab (1+ tab-index))
      (message "No more recent tabs"))))