[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-30 ef0276de82b: ; * lisp/cus-edit.el (setopt): Doc fix. (Bug#7309
From: |
Eli Zaretskii |
Subject: |
emacs-30 ef0276de82b: ; * lisp/cus-edit.el (setopt): Doc fix. (Bug#73098) |
Date: |
Sat, 14 Sep 2024 05:34:02 -0400 (EDT) |
branch: emacs-30
commit ef0276de82b8ac517ea8c15ee504f290c6528c73
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
; * lisp/cus-edit.el (setopt): Doc fix. (Bug#73098)
---
lisp/cus-edit.el | 5 +++++
1 file changed, 5 insertions(+)
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))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-30 ef0276de82b: ; * lisp/cus-edit.el (setopt): Doc fix. (Bug#73098),
Eli Zaretskii <=