diff options
author | Eli Zaretskii <eliz@gnu.org> | 2024-09-14 12:33:36 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2024-09-14 12:33:36 +0300 |
commit | ef0276de82b8ac517ea8c15ee504f290c6528c73 (patch) | |
tree | b8295e936659d7ef0448862b857975c95c595142 /lisp/cus-edit.el | |
parent | b115c2d5ebaa9819fc0a12b0df75f9b1080d53e6 (diff) | |
download | emacs-ef0276de82b8ac517ea8c15ee504f290c6528c73.tar.gz emacs-ef0276de82b8ac517ea8c15ee504f290c6528c73.tar.bz2 emacs-ef0276de82b8ac517ea8c15ee504f290c6528c73.zip |
; * lisp/cus-edit.el (setopt): Doc fix. (Bug#73098)
Diffstat (limited to 'lisp/cus-edit.el')
-rw-r--r-- | lisp/cus-edit.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 469f4334b44..de7c3ea7cb6 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el @@ -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)) |