Subject: bug#39956: (no subject)

From: Lars Ingebrigtsen <[email-masked]>
Date: Fri, 30 Oct 2020 11:06:33 +0100

Lars Ingebrigtsen <[email-masked]> writes:

> %5s means front-padding with spaces so that it's 5 characters wide.
> What about...  %5.2s to front-pad, and have two decimals?  Oh, yeah,
> that's just the normal floating point spec; duh.
>
> Should be trivial to implement.

Oops.  Ambiguous, since format-seconds unfortunately uses "." to mean
"zero-pad".  (Instead of having a leading space mean zero-pad, like in
`format'.)  

    (while (string-match "%\\.?[0-9]*\\(.\\)" string start)

OK, I'll introduce a "," thing to specify decimals.

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