Re: [PATCH] kconfig: wrap long expressions in menuconfig
From: Miguel Ojeda
Date: Sun Oct 11 2026 - 12:21:17 EST
On Sat, Oct 10, 2026 at 11:50 AM Julian Braha <julianbraha@xxxxxxxxx> wrote:
>
> In an offline conversation, Miguel Ojeda reported that scrolling
> horizontally in menuconfig's search to read RUST's dependencies has been
> slowing down debugging.
Thanks for working on this!
This is definitely useful, because users (and ourselves) have had to
scroll horizontally too much for `CONFIG_RUST` :)
Maybe it could help to clarify here that "debugging" above means
understanding by users (i.e. not developers) why the dependencies are
not satisfied. `menuconfig`'s search is uniquely useful because it
shows the expressions with the current values; i.e. this is useful for
most users dealing with long configs like `RUST`'s.
Is this patch the live one you showed me back in the conference?
By the way, for context and future reference before I forget, I
suggested a few other bits:
- Wrapping on the top-level `&&` operators.
- Even better, wrapping on the actual `depends on` lines, rather
than every top-level `&&`, because sometimes they are logically
grouped, even if they may use themselves `&&` for the condition. But
IIRC we discussed that this would require tracking more state and/or
reworking part of the parser.
- For completeness, I also mentioned potentially considering to show
(a subset of) attached comments, but that is not really needed and it
is really low hanging fruit that is most likely not worth its
complexity: we already have descriptions and most options are not as
complex as `RUST`'s.
Cheers,
Miguel