emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 138d9dc4cb 2/2: * lisp/cus-edit.el (setopt--set): Warn instead


From: Philip Kaludercic
Subject: emacs-29 138d9dc4cb 2/2: * lisp/cus-edit.el (setopt--set): Warn instead of rasing an error
Date: Sun, 18 Dec 2022 06:46:23 -0500 (EST)

branch: emacs-29
commit 138d9dc4cb07ce53486231eec5db0ca56bd66429
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    * lisp/cus-edit.el (setopt--set): Warn instead of rasing an error
    
    (Bug#60162)
---
 lisp/cus-edit.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 0e09e99da9..ab2f74dbb8 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))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]