all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Al Haji-Ali <abdo.haji.ali@gmail.com>
To: Mauro Aranda <maurooaranda@gmail.com>, 75171@debbugs.gnu.org
Subject: bug#75171: 30.0.50; Checklist widget inside a group does not initialize correctly
Date: Thu, 02 Jan 2025 22:04:28 +0000	[thread overview]
Message-ID: <m234i0q3df.fsf@gmail.com> (raw)
In-Reply-To: <fc3e5e5a-4799-4629-b0db-a1e1f3300351@gmail.com>


On 02/01/2025, Mauro Aranda wrote:

> Al Haji-Ali <abdo.haji.ali@gmail.com> 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





  reply	other threads:[~2025-01-02 22:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-29  8:33 bug#75171: 30.0.50; Checklist widget inside a group does not initialize correctly Al Haji-Ali
2025-01-02 13:56 ` Mauro Aranda
2025-01-02 22:04   ` Al Haji-Ali [this message]
2025-01-03 13:05     ` Mauro Aranda
2025-01-06 15:14       ` Mauro Aranda
2025-01-18  9:39         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m234i0q3df.fsf@gmail.com \
    --to=abdo.haji.ali@gmail.com \
    --cc=75171@debbugs.gnu.org \
    --cc=maurooaranda@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.