help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Converting an Integer into Human Readable String


From: Eli Zaretskii
Subject: Re: Converting an Integer into Human Readable String
Date: Thu, 07 Apr 2011 07:52:25 -0400

> From: Nordlöw <per.nordlow@gmail.com>
> Newsgroups: gnu.emacs.help
> Date: Thu, 7 Apr 2011 03:02:52 -0700 (PDT)
> Reply-To: gnu.emacs.help@googlegroups.com
> 
> I looking for the function that prints file size on the mode-line in 
> size-indication-mode. I have searched for size-indication-mode in the source 
> but cannot find a code-references to it. So where is the function that prints 
> for example
> 
> 22k
> 
> when file is approximately 22 kilobytes big?

You won't find it in Lisp.  It is implemented in C, see
xdisp.c:pint2hrstr; the display engine puts that part on the mode line
if the variable size-indication-mode is customized to non-nil.



reply via email to

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