bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12443: 24.2.50; Default values in the minibuffer prompt (fix inconsi


From: Lars Ingebrigtsen
Subject: bug#12443: 24.2.50; Default values in the minibuffer prompt (fix inconsisntecy)
Date: Tue, 25 Aug 2020 21:12:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Juri Linkov <juri@jurta.org> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]