]> git.eshelyaron.com Git - emacs.git/commit
Clean up file-size-function
authorMattias Engdegård <mattiase@acm.org>
Mon, 22 Jul 2019 15:10:37 +0000 (17:10 +0200)
committerMattias Engdegård <mattiase@acm.org>
Fri, 2 Aug 2019 10:38:44 +0000 (12:38 +0200)
commit408e75e819f70ed47000bc31b34435a4bad33c0c
treed39724241aa7e9cb463c80124c751c46bab36a98
parentb49d987a8cf5f5dd7ba864e20995e21765eaefcf
Clean up file-size-function

It is now called `byte-count-to-string-function', and used instead of
calling `file-size-human-readable' directly where appropriate.

* lisp/files.el (file-size-human-readable-iec): New.
(file-size-function): Rename to byte-count-to-string-function.  Better
default value.  Eliminate lambda.  Better default for custom choice.
Put in group `files'.  More descriptive doc string.  Move.
(out-of-memory-warning-percentage, warn-maybe-out-of-memory)
(get-free-disk-space):
* lisp/dired.el (dired-number-of-marked-files):
* lisp/url/url-http.el (url-http-simple-after-change-function)
(url-http-content-length-after-change-function):
Use byte-count-to-string-function.
* test/lisp/files-test.el (files-test-file-size-human-readable):
Test file-size-human-readable-iec.
etc/NEWS
lisp/dired.el
lisp/files.el
lisp/url/url-http.el
test/lisp/files-tests.el