; * lisp/cus-edit.el (setopt): Doc fix. (Bug#73098)
authorEli Zaretskii <eliz@gnu.org>
Sat, 14 Sep 2024 09:33:36 +0000 (12:33 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 14 Sep 2024 09:33:36 +0000 (12:33 +0300)
lisp/cus-edit.el

index 469f4334b44b636441c331bfe43e78fd7d7bc650..de7c3ea7cb6b253c19b5b8ec30789e72385d8ae8 100644 (file)
@@ -1060,6 +1060,11 @@ This is like `setq', but is meant for user options instead of
 plain variables.  This means that `setopt' will execute any
 `custom-set' form associated with VARIABLE.
 
+Note that `setopt' will emit a warning if the type of a VALUE
+does not match the type of the corresponding VARIABLE as
+declared by `defcustom'.  (VARIABLE will be assigned the value
+even if it doesn't match the type.)
+
 \(fn [VARIABLE VALUE]...)"
   (declare (debug setq))
   (unless (zerop (mod (length pairs) 2))