diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 0e09e99da95..ab2f74dbb88 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el @@ -1073,7 +1073,7 @@ plain variables. This means that `setopt' will execute any ;; Check that the type is correct. (when-let ((type (get variable 'custom-type))) (unless (widget-apply (widget-convert type) :match value) - (user-error "Value `%S' does not match type %s" value type))) + (warn "Value `%S' does not match type %s" value type))) (put variable 'custom-check-value (list value)) (funcall (or (get variable 'custom-set) #'set-default) variable value))