Function: toggle-tool-bar-mode-from-frame
toggle-tool-bar-mode-from-frame is an autoloaded, interactive and
byte-compiled function defined in tool-bar.el.gz.
Signature
(toggle-tool-bar-mode-from-frame &optional ARG)
Documentation
Toggle tool bar on or off, based on the status of the current frame.
See tool-bar-mode(var)/tool-bar-mode(fun) for more information.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/tool-bar.el.gz
;;;###autoload
;; Used in the Show/Hide menu, to have the toggle reflect the current frame.
(defun toggle-tool-bar-mode-from-frame (&optional arg)
"Toggle tool bar on or off, based on the status of the current frame.
See `tool-bar-mode' for more information."
(interactive (list (or current-prefix-arg 'toggle)))
(if (eq arg 'toggle)
(tool-bar-mode (if (> (frame-parameter nil 'tool-bar-lines) 0) 0 1))
(tool-bar-mode arg)))