[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 6d1df4e: * lisp/simple.el (set-variable): Use user-
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] master 6d1df4e: * lisp/simple.el (set-variable): Use user-error for type mismatch. |
Date: |
Mon, 06 Jul 2015 19:30:55 +0000 |
branch: master
commit 6d1df4ee879411f7ec1b10cbfd5a35267c3a1d78
Author: Glenn Morris <address@hidden>
Commit: Glenn Morris <address@hidden>
* lisp/simple.el (set-variable): Use user-error for type mismatch.
---
lisp/simple.el | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/simple.el b/lisp/simple.el
index 5ee32d5..24ce6c3 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))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 6d1df4e: * lisp/simple.el (set-variable): Use user-error for type mismatch.,
Glenn Morris <=