From: Eli Zaretskii Date: Sat, 14 Sep 2024 09:33:36 +0000 (+0300) Subject: ; * lisp/cus-edit.el (setopt): Doc fix. (Bug#73098) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9bd8cc0a1b8f757855988e3f5d6494cdc773081a;p=emacs.git ; * lisp/cus-edit.el (setopt): Doc fix. (Bug#73098) (cherry picked from commit ef0276de82b8ac517ea8c15ee504f290c6528c73) --- diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index f44a4e07652..7c10e41f9e7 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el @@ -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))