From: Glenn Morris Date: Mon, 6 Jul 2015 19:30:51 +0000 (-0400) Subject: * lisp/simple.el (set-variable): Use user-error for type mismatch. X-Git-Tag: emacs-25.0.90~1539 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6d1df4ee879411f7ec1b10cbfd5a35267c3a1d78;p=emacs.git * lisp/simple.el (set-variable): Use user-error for type mismatch. --- diff --git a/lisp/simple.el b/lisp/simple.el index 5ee32d5a787..24ce6c3402e 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -7362,8 +7362,8 @@ With a prefix argument, set VARIABLE to VALUE buffer-locally." (require 'cus-edit) (setq type (widget-convert type)) (unless (widget-apply type :match value) - (error "Value `%S' does not match type %S of %S" - value (car type) variable)))) + (user-error "Value `%S' does not match type %S of %S" + value (car type) variable)))) (if make-local (make-local-variable variable))