Fix regressions in Customize caused by 'widget-unselected' face
authorStephen Berman <stephen.berman@gmx.net>
Thu, 1 Aug 2024 17:28:04 +0000 (19:28 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 4 Aug 2024 07:47:46 +0000 (10:47 +0300)
* lisp/wid-edit.el (widget-checklist-add-item): Don't call
'widget-specify-selected'.  (Bug#72404)  (Bug#72156)

lisp/wid-edit.el

index 693991a6f3eb41213c0fe7ae0d5ba6ff32e5fc33..e7e6351fcabeafb48bf4833f0c1b81bde0311ad0 100644 (file)
@@ -2549,7 +2549,10 @@ If the item is checked, CHOSEN is a cons whose cdr is the value."
                            (t
                             (widget-create-child-value
                              widget type (car (cdr chosen)))
-                             (widget-specify-selected child)))))
+                             ;; This somehow breaks :options and other
+                             ;; Custom features.
+                             ;; (widget-specify-selected child)
+                             ))))
               (t
                (error "Unknown escape `%c'" escape)))))
      ;; Update properties.