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: Stefan Monnier
Subject: Re: master 2b97e83cc1 2/2: Fix off-by-one file size formatting in ls-lisp
Date: Sat, 12 Feb 2022 15:32:16 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

>> >> 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.

No, but if we don't like it we can remove it.
Do you find this feature useful?  If so, can you give me an idea what
you like about it?


        Stefan




reply via email to

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