Variable: setopt-local-type-mismatch
setopt-local-type-mismatch is a customizable variable defined in
cus-edit.el.gz.
Value
nil
Documentation
Behavior of setopt-local’ if values type doesn't match its definition.
If nil, emit a warning, but accept the mismatched value.
If the symbol accept, ignore type mismatch warning and assign the value.
If the symbol discard, ignore warning and discard the mismatched value.
If any other non-nil value, prompt whether to accept or discard the value.
Note: Accepting mismatched values may result in unexpected behavior.
This variable was added, or its default value changed, in Emacs 32.1.
Probably introduced at or before Emacs version 32.1.
Source Code
;; Defined in /usr/src/emacs/lisp/cus-edit.el.gz
;;;###autoload
(defcustom setopt-local-type-mismatch nil
"Behavior of `setopt-local’ if value's type doesn't match its definition.
If nil, emit a warning, but accept the mismatched value.
If the symbol `accept', ignore type mismatch warning and assign the value.
If the symbol `discard', ignore warning and discard the mismatched value.
If any other non-nil value, prompt whether to accept or discard the value.
Note: Accepting mismatched values may result in unexpected behavior."
:type '(choice (const :tag "Emit a warning and accept the type value" nil)
(const :tag "Prompt to accept or discard the value" t)
(const :tag "Ignore the warning and accept the value" accept)
(const :tag "Ignore the warning and discard the value" discard))
:version "32.1"
:safe #'symbolp
:group 'customize)