From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Al Haji-Ali Newsgroups: gmane.emacs.bugs Subject: bug#75171: 30.0.50; Checklist widget inside a group does not initialize correctly Date: Thu, 02 Jan 2025 22:04:28 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7951"; mail-complaints-to="usenet@ciao.gmane.io" To: Mauro Aranda , 75171@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 02 23:08:24 2025 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tTTMe-0001x5-6G for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jan 2025 23:08:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTTMO-0008Ff-2g; Thu, 02 Jan 2025 17:08:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTTMJ-00081k-4L for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 17:08:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tTTMI-0007LF-O6 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 17:08:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=TTeA1GZgQHJlyyTC/d1lcHaqXycpw4m2rUxOBAtaglg=; b=gFZax1vGg2AdyW1PhD2BD2XCHMBnb9pgXo2ju7YjDMP97H54HHNRiUiooE+mciYYNaYhFWhf4CzXqLWDAszvWceAfE8fyoa6+42VkzYg0wYeFyfvOBHsqiiWyLj5MZJh+E3tEIeEj5ZPRPV87mLDlawRXwvl16MnTE13O0fxJZaU3xI6IOPv3E+y2DcJj1ICRacYVogWs1Urt/B5aMblmWv7un49txb22MaVrtdLvHvsdW3sf2/P1lMjw1IwDo8ZJMrjdIUcLosimsjomxitxVEy/CGS0BtNuS53h7jnlFhBQC2F0C0VY0VErssdrCKloT8ZgD7LAtHncbZBh2H8Ug==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTTMI-0003lb-8O for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 17:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Al Haji-Ali Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jan 2025 22:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75171 X-GNU-PR-Package: emacs Original-Received: via spool by 75171-submit@debbugs.gnu.org id=B75171.173585567114445 (code B ref 75171); Thu, 02 Jan 2025 22:08:02 +0000 Original-Received: (at 75171) by debbugs.gnu.org; 2 Jan 2025 22:07:51 +0000 Original-Received: from localhost ([127.0.0.1]:47030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTTM6-0003kv-Tj for submit@debbugs.gnu.org; Thu, 02 Jan 2025 17:07:51 -0500 Original-Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:55695) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tTTM4-0003kV-CM for 75171@debbugs.gnu.org; Thu, 02 Jan 2025 17:07:49 -0500 Original-Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4361dc6322fso77512345e9.3 for <75171@debbugs.gnu.org>; Thu, 02 Jan 2025 14:07:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735855662; x=1736460462; darn=debbugs.gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :from:to:cc:subject:date:message-id:reply-to; bh=TTeA1GZgQHJlyyTC/d1lcHaqXycpw4m2rUxOBAtaglg=; b=dTxLTKMK4YODSDwsfmpXiCBuIwdZ+iJgi5nwRTXyhbcyLLjSGFbCqRZvfloqQh699B o/ri4hw9diZEZnsFIJDE5B0KRgkYVGljK2xiignJoX0XO9XbLM+GWOssjdSQNFUTMx1G OkFr+tT7FCyj8hFqagrbwTNRMfNyCKtn5SGBXC2D3s7vOgOhH3KyHxvlyOt10er/ThKG J4Iv4oqmDUE5jDjqUlVrciFPo92XlFau7BdCmXlbUaYYm4N8pyRkLUnEWC1GoFtoBSAw QpLU8rhNJv+Ykmjyv7fV5YoPsu4gm3nW3rYXZvc3ekL0iC8HqZt6Mdx4qfKo0PMvjHd+ 3rXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735855662; x=1736460462; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TTeA1GZgQHJlyyTC/d1lcHaqXycpw4m2rUxOBAtaglg=; b=vy9HZahVrEbW/ApJUDmdKLfSu7827o7GdoyDpYyb/oIjGHZR8lZv7xqx3WRx3Dk3aD aN7DOru3FV7CBwmBFaXVTSRUeNfQZRY6a5/1Mn7KX7nakef61dy3wUkQ1DSvFBRbHa7d E0STm5DhSlEsJ6hB5lHBJ1GiZCJ3NIWbunfay9XGFvkZ48JpHlrzvYYVH/J6R+DhllVa vgMXYN2YvLjCdydaykRDHJ5Py9nyYBLpR7Q09zpRjCFk+o/bZWzRa4iyvsESO25sqUlQ qBk165S8PuSYUUs7tS1lrYAyP7H0V3am7eHOfm0dO1RESnzqyDGf8LNudtARSOnwCaqM wJ7g== X-Forwarded-Encrypted: i=1; AJvYcCWnIcTNVOeAvbBCRvcb7zUrigb29xoE/sCB8qj6W1cWMa/qJhQfaQZTVRycv0SRnvaUSQaU9w==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxpeGC7+H3IUgpezF4l+3AWKPe2h/Ciud4tuU9feEyyNn54iK0S aCa8PlSGCXgOX/CSazm2zQ4rWRjX+cNqZXBX7Jx+MmBT54anPuRUfdBMzVWBscU= X-Gm-Gg: ASbGnctNJQrAsg65NmIa2zEf4eGZn5ShdrN0Yk6xskzGkdIE5a5UhBOIJ1h4MeeOP9j VUvktz2zoEpytfk3g2j4nc8m150G2j6so2JUJlpKW2EhVngqvgIrNqUzfvCtMcsINVfZJYzSSXA rnS/niY5s1/hqJnO3bLFL3DS9jkwFN0Ewwp2837vdGvg9pkF+L2T8ySgXCBajzZ0zOlA2p52QIS afe0nR1eUDZFc9Tk2rN+R2cDBfPioDuKhuwIdfNsX9bcfBZ1wGDyjBO6KnxjQuFwFTEvLyONHJ5 w34ZQ3EE9f7W1Ae3v5eekcdAEDjf4LssD9tj8tWCARYsmgTurH/uTd3q X-Google-Smtp-Source: AGHT+IGXs/mQkYPitZCj2zCE7Z84ybO8hBWvIIIoLnGXoiDVN2pkL4CYXNFGeMYod1OKUxxS3ZVB7g== X-Received: by 2002:a05:600c:3b9d:b0:436:6160:5b81 with SMTP id 5b1f17b1804b1-43668643bd7mr395902035e9.14.1735855661695; Thu, 02 Jan 2025 14:07:41 -0800 (PST) Original-Received: from localhost (sgyl-45-b2-v4wan-166941-cust3717.vm6.cable.virginm.net. [82.37.190.134]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4366120088esm462502525e9.13.2025.01.02.14.07.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2025 14:07:41 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298244 Archived-At: On 02/01/2025, Mauro Aranda wrote: > Al Haji-Ali writes: > There's no explicit :value for the group widget, so its value is nil, > and then the Widget library tries to create all four children with a nil > value. The radio-button-choice widget differs from the checklist widget > in that the former tries to be created with a selected choice, and tries > harder than the checklist widget, which is fine with a value of nil. > > That way, you see that the specified value is obeyed in > radio-button-choice but not in the checklist widget. > > FTR, I'm not saying this is 100% correct. I'm just trying to explain > how it works now. Thanks, this makes sense. Did I miss an explanation of this issue somewhere in the docs? > This is intended behavior, AFAIU. The parent can override values for > the children, and that way we can recreate widgets with new values just > by changing the values of the parent. I was aware of this behaviour for the group, but I didn't twig the consequence on a checklist. I have to say that I find it a bit counter-intuitive. Also the fact that there is no way to set the value of a checklist without repeating it in the group is somewhat awkward (certainly it will complicate my implementation) and a bit inconsistent since setting the value of the checklist after the group creation would override the value of the group. A fix, or a some way, that would prevents the group from overriding the values of the children would be useful, IMO. With that being said, this issue should probably be closed as "not a bug". Thanks, -- Al