Fix checkbox's child creation

* lisp/wid-edit.el (widget-checklist-add-item): Swap function
calls so that child is actually a widget.  (Bug#72156)
This commit is contained in:
Mauro Aranda 2025-01-01 08:22:45 -03:00 committed by Eli Zaretskii
parent 26c5fadf47
commit d66b8d4bec

View file

@ -2550,12 +2550,9 @@ If the item is checked, CHOSEN is a cons whose cdr is the value."
(widget-create-child-value
widget type (cdr chosen)))
(t
(widget-create-child-value
widget type (car (cdr chosen)))
;; This somehow breaks :options and other
;; Custom features.
;; (widget-specify-selected child)
))))
(widget-specify-selected child)
(widget-create-child-value
widget type (car (cdr chosen)))))))
(t
(error "Unknown escape `%c'" escape)))))
;; Update properties.