]> git.eshelyaron.com Git - emacs.git/commitdiff
; * 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)
committerEshel Yaron <me@eshelyaron.com>
Sat, 14 Sep 2024 20:34:30 +0000 (22:34 +0200)
(cherry picked from commit ef0276de82b8ac517ea8c15ee504f290c6528c73)

lisp/cus-edit.el

index f44a4e076529694198718c1d98e7738da943b20f..7c10e41f9e7b70065fc2aaf6713b1f8358a840c0 100644 (file)
@@ -1055,6 +1055,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))