From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Mike Frysinger <vapier@gentoo.org>
Cc: linux-kbuild@vger.kernel.org
Subject: Re: non-visible options vs menuconfigs
Date: Mon, 22 Apr 2013 22:26:49 +0200 [thread overview]
Message-ID: <20130422202649.GD24143@free.fr> (raw)
In-Reply-To: <201304221419.51623.vapier@gentoo.org>
Mike, All,
On Mon, Apr 22, 2013 at 02:19:50PM -0400, Mike Frysinger wrote:
> On Monday 22 April 2013 14:00:46 Yann E. MORIN wrote:
> > As far as I remember, this has always been the behaviour of menuconfig.
> >
> > What do you suggest the frontends do in this case, short of re-ordering
> > the options (which I think is not correct) ?
>
> i think you missed a critical part of my proposal:
> seems like *if a node is unprintable*, it should get skipped for
> menuconfig purposes
Ah, yes, I missed it. And it is part of the solutions I exposed, too:
On the other hand, we could consider dependent options as candidates for
being sub-options until we see the first non-dependent option with a
prompt.
> to modify your example, i'm proposing a change for:
> menuconfig MENU_A
> bool "A"
>
> config OPT_B
> bool
>
> config OPT_C
> bool "C"
> depends on MENU_A
>
> OPT_B is not shown to the user (there is no option text), therefore it should
> automatically get skipped when searching for options to collapse into the
> menuconfig MENU_A.
>
> i do agree that if OPT_B had text, then the existing behavior would be
> unchanged.
And as I pointed out, this would break as soon as an option with a prompt
(which you call 'option text') is added in-between. For example, starting
with:
menuconfig MENU_A
bool "A"
config OPT_B
bool
config OPT_C
bool "C"
depends on MENU_A
And then modifying into:
menuconfig MENU_A
bool "A"
config OPT_D
bool "D"
config OPT_B
bool
config OPT_C
bool "C"
depends on MENU_A
(which would be trivivaly noticed here, but can be more complex in real
life, as you havee seen in the current init/Kconfig).
This would change the semantic of the language anyway, where currently
your example disrupts the dependendcy chain. Granted, it looks like a
good change, but I think we should not encourage people to be lazy, and
we better want them to be careful about what they intend to do, about
what they review and ack (myself largely included! :-] ).
I'll see if I can coerce the kconfig parser and frontends (yes,
frontends are probably impacted, too) to behave the way we discussed in
this thread, and see how good it works when confronted to real life.
Thank you!
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2013-04-22 20:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-22 16:51 non-visible options vs menuconfigs Mike Frysinger
2013-04-22 17:08 ` Randy Dunlap
2013-04-22 18:03 ` Mike Frysinger
2013-04-22 18:00 ` Yann E. MORIN
2013-04-22 18:19 ` Mike Frysinger
2013-04-22 20:26 ` Yann E. MORIN [this message]
2013-04-22 21:12 ` Mike Frysinger
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=20130422202649.GD24143@free.fr \
--to=yann.morin.1998@free.fr \
--cc=linux-kbuild@vger.kernel.org \
--cc=vapier@gentoo.org \
/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.
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.