Function: tab-bar--tab-bar-lines-for-frame
tab-bar--tab-bar-lines-for-frame is a byte-compiled function defined
in tab-bar.el.gz.
Signature
(tab-bar--tab-bar-lines-for-frame FRAME)
Documentation
Determine and return the value of tab-bar-lines for FRAME.
Return 0 if tab-bar-mode(var)/tab-bar-mode(fun) is not enabled. Otherwise return
either 1 or 0 depending on the value of the customizable variable
tab-bar-show, which see.
Source Code
;; Defined in /usr/src/emacs/lisp/tab-bar.el.gz
(defun tab-bar--tab-bar-lines-for-frame (frame)
"Determine and return the value of `tab-bar-lines' for FRAME.
Return 0 if `tab-bar-mode' is not enabled. Otherwise return
either 1 or 0 depending on the value of the customizable variable
`tab-bar-show', which see."
(cond
((not tab-bar-mode) 0)
((not tab-bar-show) 0)
((eq tab-bar-show t) 1)
((natnump tab-bar-show)
(if (> (length (funcall tab-bar-tabs-function frame)) tab-bar-show) 1 0))))