1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

(set-variable): Require 'cus-edit' instead of

`wid-edit', so that the Custom widgets get defined.
This commit is contained in:
Gerd Moellmann 2001-07-16 11:52:56 +00:00
parent 6a05d05faf
commit 36755dd923

View file

@ -3530,7 +3530,7 @@ in the definition is used to check that VALUE is valid."
(let ((type (get var 'custom-type)))
(when type
;; Match with custom type.
(require 'wid-edit)
(require 'cus-edit)
(setq type (widget-convert type))
(unless (widget-apply type :match val)
(error "Value `%S' does not match type %S of %S"