Function: tab-bar--key-to-number
tab-bar--key-to-number is a byte-compiled function defined in
tab-bar.el.gz.
Signature
(tab-bar--key-to-number KEY)
Documentation
Return the tab number represented by KEY.
If KEY is a symbol 'tab-N', where N is a tab number, the value is N. If KEY is 'current-tab, the value is nil. For any other value of KEY, the value is t.
Source Code
;; Defined in /usr/src/emacs/lisp/tab-bar.el.gz
;;; Key bindings
(defun tab-bar--key-to-number (key)
"Return the tab number represented by KEY.
If KEY is a symbol 'tab-N', where N is a tab number, the value is N.
If KEY is \\='current-tab, the value is nil.
For any other value of KEY, the value is t."
(cond
((null key) t)
((eq key 'current-tab) nil)
((let ((key-name (format "%S" key)))
(when (string-prefix-p "tab-" key-name)
(string-to-number (string-replace "tab-" "" key-name)))))
(t t)))