]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix checkbox's child creation
authorMauro Aranda <maurooaranda@gmail.com>
Wed, 1 Jan 2025 11:22:45 +0000 (08:22 -0300)
committerEshel Yaron <me@eshelyaron.com>
Sun, 12 Jan 2025 10:59:00 +0000 (11:59 +0100)
* lisp/wid-edit.el (widget-checklist-add-item): Swap function
calls so that child is actually a widget.  (Bug#72156)

(cherry picked from commit d66b8d4becb6804d3bd912a000dc64ccfdbe6810)

lisp/wid-edit.el

index 75ec6b22bbfee5560a64d699c37dab1276bf0ec4..5f5d0151163d810cbc0afbb64800653ed94e021c 100644 (file)
@@ -2549,9 +2549,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)))
-                             (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.