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

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

bug#39956: (no subject)


From: Lars Ingebrigtsen
Subject: bug#39956: (no subject)
Date: Fri, 30 Oct 2020 11:06:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> 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





reply via email to

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