Require custom values of boolean
type to be nil or t
This helps detecting mistakes in types and/or initial values. * lisp/wid-edit.el (boolean): Add :match function.
This commit is contained in:
parent
2ef6f943ab
commit
613591f384
1 changed files with 1 additions and 0 deletions
|
@ -4038,6 +4038,7 @@ is inline."
|
|||
:button-prefix 'widget-push-button-prefix
|
||||
:button-suffix 'widget-push-button-suffix
|
||||
:format "%{%t%}: %[Toggle%] %v\n"
|
||||
:match (lambda (_widget value) (booleanp value))
|
||||
:on "on (non-nil)"
|
||||
:off "off (nil)")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue