Function: custom-icon-reset-saved
custom-icon-reset-saved is a byte-compiled function defined in
cus-edit.el.gz.
Signature
(custom-icon-reset-saved WIDGET)
Documentation
Restore icon customized by WIDGET to the icon's default attributes.
If there's a theme value for the icon, resets to that. Otherwise, resets to its standard value.
Source Code
;; Defined in /usr/src/emacs/lisp/cus-edit.el.gz
(defun custom-icon-reset-saved (widget)
"Restore icon customized by WIDGET to the icon's default attributes.
If there's a theme value for the icon, resets to that. Otherwise, resets to
its standard value."
(let* ((icon (widget-value widget)))
(custom-push-theme 'theme-icon icon 'user 'reset)
(custom-icon-state-set widget)
(custom-redraw widget)))