Function: toolbarx-option-value
toolbarx-option-value is a byte-compiled function defined in
toolbar-x.el.
Signature
(toolbarx-option-value OPT)
Documentation
If OPT is a vector, return first element, otherwise, return OPT.
If OPT is vector and length is smaller than the necessary, then nil is returned.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/toolbar-x.el
(defun toolbarx-option-value (opt)
"If OPT is a vector, return first element, otherwise, return OPT.
If OPT is vector and length is smaller than the necessary, then
nil is returned."
;; FIXME: This is backward compatibility for when we supported XEmacs
;; and entries could take the shape [FOO BAR] where FOO was the
;; value to use for Emacs and BAR the value to use for XEmacs.
;; This is unused since Mar 2021.
(if (vectorp opt)
(when (> (length opt) 0)
(aref opt 0))
opt))