mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-11 18:31:17 -08:00
(set-variable): Simplify previous change.
This commit is contained in:
parent
888eb98e2f
commit
f8496faab6
1 changed files with 1 additions and 4 deletions
|
|
@ -3035,13 +3035,10 @@ in the definition is used to check that VALUE is valid."
|
|||
'set-variable-value-history)))))
|
||||
(list var val)))
|
||||
|
||||
(let ((type (get var 'custom-type))
|
||||
widget)
|
||||
(let ((type (get var 'custom-type)))
|
||||
(when type
|
||||
;; Match with custom type.
|
||||
(require 'wid-edit)
|
||||
(unless (listp type)
|
||||
(setq widget (list type)))
|
||||
(setq type (widget-convert type))
|
||||
(unless (widget-apply type :match val)
|
||||
(error "Value `%S' does not match type %S of %S"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue