emacs-devel
[Top][All Lists]
Advanced

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

Re: master 2b97e83cc1 2/2: Fix off-by-one file size formatting in ls-lis


From: Eli Zaretskii
Subject: Re: master 2b97e83cc1 2/2: Fix off-by-one file size formatting in ls-lisp
Date: Sat, 12 Feb 2022 21:53:55 +0200

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: emacs-devel@gnu.org,  larsi@gnus.org
> Date: Sat, 12 Feb 2022 14:42:07 -0500
> 
> >> I know.  And I'm asking why `file-size-human-readable` gives so
> >> much accuracy.
> >
> > It's a feature:
> >
> >       (format (if (and (>= (mod file-size 1.0) 0.05)
> >                        (< (mod file-size 1.0) 0.95))
> >               "%.1f%s%s"
> >             "%.0f%s%s")
> 
> Why is it a feature

It's a feature by definition: there's code that intentionally does
that.

> to waste those two perfect good characters on such irrelevant
> details?

A feature doesn't have to be liked to be a feature.



reply via email to

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