Function: widget-color-validate

widget-color-validate is a byte-compiled function defined in wid-edit.el.gz.

Signature

(widget-color-validate WIDGET)

Documentation

Check that WIDGET's value is a valid color.

Source Code

;; Defined in /usr/src/emacs/lisp/wid-edit.el.gz
(defun widget-color-validate (widget)
  "Check that WIDGET's value is a valid color."
  (let ((value (widget-value widget)))
    (unless (widget-color-match widget value)
      (widget-put widget :error (format "Invalid color: %S" value))
      widget)))