Subject: Re: bug#76235: [PATCH] Improve prompt for 'project-switch-project'

From: Juri Linkov <[email-masked]>
Date: Wed, 19 Feb 2025 09:37:27 +0200

>>>>>> Maybe better to make the prompt configurable
>>>>>> (not defcustom, but only a variable,
>>>>>> so it's easy to apply properties with face).
>>>>>> Then I'd like to change it to just "[%s]" to save space.
>>>>>> A longer explanatory text is more suitable for everyone
>>>>>> who use the command infrequently.
>>>>> Could we reuse that variable in both commands?
>>>> Sharing the same variable would be nice.
>>>
>>> Like this?
>> Whatever, then I'd change it anyway to something with
>> square brackets since with brackets it looked better for e.g.
>> 'C-x 4 p p' with [other-window] prefix in brackets too:
>>    [execute in ...]:[other-window]-
>> (And 'completing-read-multiple' now uses brackets too.)
>
> completing-read-multiple uses brackets for a side note - which does not
> replace the prompt.
>
> The example above also uses brackets for the name of an input event.
>
> Using them to surround the prompt in project-other-project is a third,
> different purpose. Seems superfluous: the colon already separates the
> prompt.

Then maybe need 2 format variables: for the name of an input event,
and for the prompt in project-other-project.