From: Lars Ingebrigtsen <larsi@gnus.org>
To: "Mattias Engdegård" <mattiase@acm.org>
Cc: "Basil L. Contovounesios" <contovob@tcd.ie>,
ndame <emacsuser@freemail.hu>,
39956@debbugs.gnu.org
Subject: bug#39956: (no subject)
Date: Fri, 30 Oct 2020 11:06:33 +0100 [thread overview]
Message-ID: <87lffom3iu.fsf@gnus.org> (raw)
In-Reply-To: <87pn50m3n4.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 30 Oct 2020 11:03:59 +0100")
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
next prev parent reply other threads:[~2020-10-30 10:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-06 16:50 bug#39956: 26.2; improve display of information of M-x list-timers ndame
[not found] ` <handler.39956.B.15835136805690.ack@debbugs.gnu.org>
2020-03-07 22:03 ` ndame
2020-10-27 10:05 ` Lars Ingebrigtsen
2020-10-27 10:05 ` Lars Ingebrigtsen
2020-10-27 10:23 ` Basil L. Contovounesios
2020-10-28 9:07 ` Lars Ingebrigtsen
2020-10-28 15:17 ` Eli Zaretskii
2020-10-28 13:39 ` Mattias Engdegård
2020-10-30 10:03 ` Lars Ingebrigtsen
2020-10-30 10:06 ` Lars Ingebrigtsen [this message]
2020-10-30 11:11 ` Lars Ingebrigtsen
2020-10-30 14:50 ` Mattias Engdegård
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lffom3iu.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=39956@debbugs.gnu.org \
--cc=contovob@tcd.ie \
--cc=emacsuser@freemail.hu \
--cc=mattiase@acm.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).