mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-28 07:45:00 +00:00
866f527ddf
To improve readability of strings produced by `file-size-human-readable', add two optional arguments: - SPACE, to provide a string (typically a space or non-breaking space) to put between the number and unit. For compatibility, the default is an empty string. - UNIT, a string to use as unit. For compatibility, the default is "B" in `iec' mode and the empty string otherwise. Also fix a glitch with small numbers in `iec' mode which caused a stray "i" in the result. * lisp/files.el (file-size-human-readable): Add optional SPACE and UNIT arguments and handle small numbers correctly. (files--ask-user-about-large-file, warn-maybe-out-of-memory): Call with `iec' and space. * test/lisp/files-tests.el (files-test-file-size-human-readable): New test. * lisp/url/url-http.el (url-http-simple-after-change-function) (url-http-content-length-after-change-function): Call with `iec' and space. * etc/NEWS (Lisp Changes): Mention the change. |
||
---|---|---|
.. | ||
ChangeLog.1 | ||
url-about.el | ||
url-auth.el | ||
url-cache.el | ||
url-cid.el | ||
url-cookie.el | ||
url-dav.el | ||
url-dired.el | ||
url-domsuf.el | ||
url-expand.el | ||
url-file.el | ||
url-ftp.el | ||
url-future.el | ||
url-gw.el | ||
url-handlers.el | ||
url-history.el | ||
url-http.el | ||
url-imap.el | ||
url-irc.el | ||
url-ldap.el | ||
url-mailto.el | ||
url-methods.el | ||
url-misc.el | ||
url-news.el | ||
url-nfs.el | ||
url-ns.el | ||
url-parse.el | ||
url-privacy.el | ||
url-proxy.el | ||
url-queue.el | ||
url-tramp.el | ||
url-util.el | ||
url-vars.el | ||
url.el |