Function: custom-icon-reset-standard

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

Signature

(custom-icon-reset-standard WIDGET)

Documentation

Reset icon edited by WIDGET to its standard value.

Source Code

;; Defined in /usr/src/emacs/lisp/cus-edit.el.gz
(defun custom-icon-reset-standard (widget)
  "Reset icon edited by WIDGET to its standard value."
  (let* ((icon (widget-value widget))
         (themes (get icon 'theme-icon)))
    (dolist (theme themes)
      (custom-push-theme 'theme-icon icon (car theme) 'reset))
    (custom-save-all))
  (widget-put widget :custom-state 'unknown)
  (custom-redraw widget))