Function: vhdl-widget-directory-validate
vhdl-widget-directory-validate is a byte-compiled function defined in
vhdl-mode.el.gz.
Signature
(vhdl-widget-directory-validate WIDGET)
Documentation
Check that the value of WIDGET is a valid directory entry (i.e. ends with
'/' or is empty).
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-widget-directory-validate (widget)
"Check that the value of WIDGET is a valid directory entry (i.e. ends with
'/' or is empty)."
(let ((val (widget-value widget)))
(unless (string-match "^\\(\\|.*/\\)$" val)
(widget-put widget :error "Invalid directory entry: must end with `/'")
widget)))