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

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 25 Aug 2020 21:12:27 +0200

Juri Linkov <[email-masked]> writes:

>> 	 (setq from-coding (read-coding-system
>> 			    (format-prompt "Recode filename %s"
>>                                             default-coding filename)
>> 			    default-coding))
>
> Simpler would be to format arguments separately:
>
> 	 (setq from-coding (read-coding-system
> 			    (format-prompt (format "Recode filename %s from"
>                                                    filename)
> 				           default-coding)
> 			    default-coding))

Yeah, but that's longer and more awkward, isn't it?

> that would allow easier replacement of 'format' with 'gettext' later:
>
> 	 (setq from-coding (read-coding-system
> 			    (format-prompt (gettext "Recode filename %s from"
>                                                      filename)
> 				           default-coding)
> 			    default-coding))

I don't think we have to have gettexting in mind, because that's never
gonna happen.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no