Variable: byte-count-to-string-function
byte-count-to-string-function is a customizable variable defined in
files.el.gz.
Value
file-size-human-readable-iec
Documentation
Function that turns a number of bytes into a human-readable string.
It is for use when displaying file sizes and disk space where other constraints do not force a specific format.
This variable was added, or its default value changed, in Emacs 27.1.
Probably introduced at or before Emacs version 27.1.
Source Code
;; Defined in /usr/src/emacs/lisp/files.el.gz
(defcustom byte-count-to-string-function #'file-size-human-readable-iec
"Function that turns a number of bytes into a human-readable string.
It is for use when displaying file sizes and disk space where other
constraints do not force a specific format."
:type '(radio
(function-item file-size-human-readable-iec)
(function-item file-size-human-readable)
(function :tag "Custom function" :value number-to-string))
:group 'files
:version "27.1")