Function: widget-regexp-validate
widget-regexp-validate is a byte-compiled function defined in
wid-edit.el.gz.
Signature
(widget-regexp-validate WIDGET)
Documentation
Check that the value of WIDGET is a valid regexp.
Source Code
;; Defined in /usr/src/emacs/lisp/wid-edit.el.gz
(defun widget-regexp-validate (widget)
"Check that the value of WIDGET is a valid regexp."
(condition-case data
(prog1 nil
(string-match (widget-value widget) ""))
(error (widget-put widget :error (error-message-string data))
widget)))