From 8b1c19540c5ef873062e9389acb156dafc4f875c Mon Sep 17 00:00:00 2001 From: Mauro Aranda Date: Wed, 1 Jan 2025 08:22:45 -0300 Subject: [PATCH] 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) --- lisp/wid-edit.el | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index bf3a1141baf..3acb77dd7db 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el @@ -2549,12 +2549,9 @@ widget-checklist-add-item (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. -- 2.34.1