Function: custom-icon-state

custom-icon-state is a byte-compiled function defined in cus-edit.el.gz.

Signature

(custom-icon-state SYMBOL VALUE)

Documentation

Return the state of customize icon SYMBOL for VALUE.

Possible return values are standard, saved, set, themed, and changed.

Source Code

;; Defined in /usr/src/emacs/lisp/cus-edit.el.gz
;;; FIXME -- more work is needed here.  We don't properly
;;; differentiate between `saved' and `set'.
(defun custom-icon-state (symbol value)
  "Return the state of customize icon SYMBOL for VALUE.
Possible return values are `standard', `saved', `set', `themed',
and `changed'."
  (cond
   ((equal (icon-complete-spec symbol t t) value)
    'standard)
   ((equal (icon-complete-spec symbol nil t) value)
    (if (eq (caar (get symbol 'theme-icon)) 'user)
        'set
      'themed))
   (t 'changed)))