Function: toggle-tab-bar-mode-from-frame

toggle-tab-bar-mode-from-frame is an interactive and byte-compiled function defined in tab-bar.el.gz.

Signature

(toggle-tab-bar-mode-from-frame &optional ARG)

Documentation

Toggle tab bar on or off, based on the status of the current frame.

Used in the Show/Hide menu, to have the toggle reflect the current frame. See tab-bar-mode(var)/tab-bar-mode(fun) for more information.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/tab-bar.el.gz
(defun toggle-tab-bar-mode-from-frame (&optional arg)
  "Toggle tab bar on or off, based on the status of the current frame.
Used in the Show/Hide menu, to have the toggle reflect the current frame.
See `tab-bar-mode' for more information."
  (interactive (list (or current-prefix-arg 'toggle)))
  (if (eq arg 'toggle)
      (tab-bar-mode (if (> (frame-parameter nil 'tab-bar-lines) 0) 0 1))
    (tab-bar-mode arg)))