Subject: bug#12443: 24.2.50; Default values in the minibuffer prompt (fix inconsisntecy)

From: Andrii Kolomoiets <[email-masked]>
Date: Mon, 14 Sep 2020 11:40:59 +0300

Lars Ingebrigtsen <[email-masked]> writes:

> Andrii Kolomoiets <[email-masked]> writes:
>
>> Code to evaluate:
>>
>>     (custom-set-variables
>>      '(minibuffer-eldef-shorten-default t))
>>     (minibuffer-electric-default-mode)
>>     (read-string "prompt (default foo): ")
>>
>> In Emacs 27 prompt looks like "prompt [foo]: ". After input "z" prompt
>> will looks like "prompt: z".
>>
>> In Emacs 28 prompt looks like "prompt (default foo): ". And after input
>> "z" prompt will looks like "promptz".
>
> Yup -- it was 19bff57f609854f257780f20043e96fb2eddc713 that included the
> ": " bit in the portion to be replaced.  This should now be fixed on the
> trunk.

Indeed. Thanks!

But the 'minibuffer-eldef-shorten-default' variable is still ignored.  The
"(default ...)" part of the prompt is not shortened to "[...]".