Function: widget-field-validate
widget-field-validate is a byte-compiled function defined in
wid-edit.el.gz.
Signature
(widget-field-validate WIDGET)
Documentation
Valid if the content matches :valid-regexp.
Source Code
;; Defined in /usr/src/emacs/lisp/wid-edit.el.gz
(defun widget-field-validate (widget)
"Valid if the content matches `:valid-regexp'."
(unless (string-match (widget-get widget :valid-regexp)
(widget-apply widget :value-get))
widget))