Function: toolbarx-emacs-refresh-process-button-or-insert-list

toolbarx-emacs-refresh-process-button-or-insert-list is a byte-compiled function defined in toolbar-x.el.

Signature

(toolbarx-emacs-refresh-process-button-or-insert-list SWITCHES USED-KEYS KEYMAP)

Documentation

Process SWITCHES, inserting buttons in tool-bar-map.

If a button is actually a :insert clause group (if car is
:insert) and evaluation of cdr yields non-nil, process cddr
recursively as SWITCHES. USED-KEYS is a list which car is
:used-symbols and which cdr is a list of symbols that have already
been used as keys in the keymap tool-bar-map.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/toolbar-x.el
(defun toolbarx-emacs-refresh-process-button-or-insert-list (switches
                                                             used-keys
                                                             keymap)
  "Process SWITCHES, inserting buttons in `tool-bar-map'.
If a button is actually a `:insert' clause group (if `car' is
`:insert') and evaluation of `cdr' yields non-nil, process `cddr'
recursively as SWITCHES.  USED-KEYS is a list which `car' is
`:used-symbols' and which `cdr' is a list of symbols that have already
been used as keys in the keymap `tool-bar-map'."
  (dolist (button switches)
    (if (eq (car button) :insert)
        (when (eval (cadr button) t)
          (toolbarx-emacs-refresh-process-button-or-insert-list (cddr button)
                                                                used-keys
                                                                keymap))
      (toolbarx-emacs-add-button button used-keys keymap))))