Function: widget-color-match

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

Signature

(widget-color-match WIDGET VALUE)

Documentation

Non-nil if VALUE is a defined color or a RGB hex string.

Source Code

;; Defined in /usr/src/emacs/lisp/wid-edit.el.gz
(defun widget-color-match (_widget value)
  "Non-nil if VALUE is a defined color or a RGB hex string."
  (and (stringp value)
       (or (color-defined-p value)
           (string-match-p "^#\\(?:[[:xdigit:]]\\{3\\}\\)\\{1,4\\}$" value))))