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 20:43:02 +0300

> From: "Drew Adams" <address@hidden>
> Date: Thu, 7 Apr 2011 05:51:46 -0700
> Cc: 
> 
> > 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?
> 
> (format-mode-line "%I" 4060) -> "4.6k"

Beware: this has side effects.  It doesn't just return a string.



reply via email to

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