[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.
- Converting an Integer into Human Readable String, Nordlöw, 2011/04/07
- Re: Converting an Integer into Human Readable String, Deniz Dogan, 2011/04/07
- Re: Converting an Integer into Human Readable String,
Eli Zaretskii <=
- RE: Converting an Integer into Human Readable String, Drew Adams, 2011/04/07
- Re: Converting an Integer into Human Readable String, Eli Zaretskii, 2011/04/07
- Re: Converting an Integer into Human Readable String, Thierry Volpiatto, 2011/04/07
- Message not available
- Message not available
- Re: Converting an Integer into Human Readable String, Thierry Volpiatto, 2011/04/08
- Re: Converting an Integer into Human Readable String, Eli Zaretskii, 2011/04/08