But when project-switch-commands should be customized instead of new option,
then I'd prefer to use function names like `project-prefix-or-any-command'
instead of symbols `short-or-any' and `short-keys'.
Unifying all three alternatives in one option seems like the logical choice.
To avoid obsoleting `project-switch-use-entire-map', `short-keys'
could be removed. Then `short-or-any' could be replaced by
`project-prefix-or-any-command'. This will introduce minimal changes.
All right, that sounds like a mix between v4 and v5.
I've pushed 41e801fea1c to master, please take a look.
Thanks, I tested and it works great.
In the future, perhaps we'd want to obsolete the option
project-switch-use-entire-map anyway, replacing it with a separate command
to be used in the same way as the newly-added one. But for now the change
is maximally backward-compatible.
Indeed, this is the safest change for now. More changes either will
bring trouble to users requiring to migrate from the obsolete variable,
or will make code more complicated.