| Age | Commit message (Collapse) | Author |
|
Items being added above the selected item would mess with the cursor
position too, if we didn't compensate.
|
|
Loading a new configuration with the cursor on an invisible item with
visible children (can happen with optional prompts) would needlessly
turn on show-all, even though such invisible items are always shown.
Fix it by doing a more explicit check for whether the selected item
shows up in the menu after loading the configuration, like
_toggle_show_all() and _jump_to() do.
|
|
Show-all mode is turned on if the node becomes invisible. The comment
said the opposite if you didn't include the parenthesis.
Piggyback some code nits.
|
|
Fixes a minor menuconfig issue, in commit 08cfc33 ("menuconfig: Show
menus with unsatisfied 'visible if' in red in show-all mode").
|
|
Previously they were shown in white, due to an oversight in
_draw_main().
_draw_main() should use the same logic as _shown_nodes(). Move it into a
separate _visible() function and call it from both.
|
|
Roll the reversing into the slice.
|
|
filing -> filling
|
|
|
|
Improves the savedefconfig help text a tiny bit, in commit 13f84c7
("savedefconfig: Have '--out MINIMAL_CONFIGURATION' instead of '--out
OUT'").
Also improves 'source' performance a bit.
|
|
These are clear in context without the module name, and it speeds up the
'source' code a tiny bit.
|
|
Small help text improvement.
|
|
|
|
Makes more documentation available via pydoc(3), in commit c70a45e
("Convert some comments to module docstrings in utilities").
|
|
This makes running pydoc(3) on the utilities helpful.
Reuse the module docstring for the --help text for utilities that use
argparse.
Also fix some copy-paste errors in the all*config.py descriptions and
clean up the language a bit.
Piggyback removal of an optimization in allmodconfig.py that's pretty
irrelevant now.
|
|
|
|
Guess setuptools strictly isn't in the stdlib...
|
|
|
|
|
|
Adds a new savedefconfig script in commit b7a1ea6 ("savedefconfig: Add
script").
|
|
Minimal configuration files can already be generated from within the
menuconfig too, but having a script available can be handy for
scripting.
|
|
|
|
|
|
People might miss it otherwise, and think they have to download and
install the wheels manually.
|
|
Test for Windows with os.name == 'nt' instead. Saves around 10 ms of
startup time.
|
|
Adds a new style warning in commit df2d26f ("Warn for unquoted argument
to 'source', etc.").
|
|
Got moved.
Also link it in the 'Getting started' section.
|
|
Replace _menu_win_height() with two generic _height(win)/_width(win)
helpers and use them for other windows as well. Makes things a bit
easier to read.
|
|
Print a warning suggesting to add quotes for things like
source foo/bar/Kconfig
menu title
prompt unquoted
Example warning:
Kconfig:32: warning: style: quotes recommended around 'lib/Kconfig.debug' in 'source lib/Kconfig.debug'
That quoteless syntax is supported for compatibility with old versions
of the C tools. It only works for a single word.
|
|
Adds some minor optimization (and internal refactoring) in commit
c0b9b07 ("Refactor and optimize type parsing a bit").
|
|
|
|
|
|
|
|
Be consistent with the other utilities.
|
|
Make kconfiglib.py consistent with the utilities.
|
|
Have BOOL/TRISTATE/... match _T_BOOL/_T_TRISTATE/... so that _set_type()
doesn't have to do any conversion in the common case. Conversion is
still needed for _T_DEF_BOOL/_T_DEF_TRISTATE/..., but those are rare.
Also make use of UNKNOWN being falsy.
Piggyback some rearranging of global constants so that related stuff
appears closer together, for readability.
|
|
|
|
Adds a silly small optimization in commit 8ddefea ("Import 'platform'
and 'subprocess' as needed").
|
|
Saves around 10 ms of startup time when they aren't, as measured with
'-X importtime'.
|
|
Does more than just parsing.
|
|
|
|
|
|
Make the exception argument to _KconfigIOError() harder to miss.
|
|
- Commit 132e579 ("Give more helpful error messages when files are
missing") makes the hint in error messages for missing files more
helpful.
- Commit faa4476 ("setconfig: Fix help text format") fixes the format
of 'setconfig --help'.
- Commit 553cca8 ("Use a consistent style in small utilities") and
commit 66557ed ("Use a consistent style in examples") cleans the
utilities and examples up a bit and removes some unused imports.
|
|
Need to use RawDescriptionHelpFormatter to preserve newlines in the
description.
Also fix a typo in the help text (s/assignments/assignment/)
|
|
The current error message talks a lot about $srctree, but $srctree is
seldom the culprit in practice. More common is
'source "$(SOME_ENV_VAR)/foo"`, where SOME_ENV_VAR hasn't been set.
Include the complete 'source ...' line for missing Kconfig files, and
mention unset environment variables as a hint. Only mention $srctree
briefly.
Also shorten the message when a .config can't be a found a bit. This
message would usually only be seen when working directly with the
library.
|
|
Also remove some unused imports.
|
|
Also remove some no longer used imports.
|
|
Used in a single place.
|
|
|
|
Adds a small documentation improvement in commit 99a7af7 ("Document that
kconfig_filenames keeps absolute paths as-is").
|