From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Converting an Integer into Human Readable String Date: Thu, 07 Apr 2011 20:43:02 +0300 Message-ID: <834o6aufdl.fsf@gnu.org> References: <4fa1ed35-b35b-4c8d-bfca-d7fae8da913b@glegroupsg2000goo.googlegroups.com> <71350401EC6C46958001611853D0D855@us.oracle.com> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1302198342 20500 80.91.229.12 (7 Apr 2011 17:45:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 7 Apr 2011 17:45:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 07 19:45:37 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q7tGz-0002NI-CG for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Apr 2011 19:45:37 +0200 Original-Received: from localhost ([127.0.0.1]:47202 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7tGy-0004Pq-SO for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Apr 2011 13:45:36 -0400 Original-Received: from [140.186.70.92] (port=55626 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7tGd-0004Ph-0S for help-gnu-emacs@gnu.org; Thu, 07 Apr 2011 13:45:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7tGb-0001de-JS for help-gnu-emacs@gnu.org; Thu, 07 Apr 2011 13:45:14 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:41132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7tGb-0001dH-BI for help-gnu-emacs@gnu.org; Thu, 07 Apr 2011 13:45:13 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LJA00M00MLROE00@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Thu, 07 Apr 2011 20:45:11 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.239.68]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LJA00MQ5MN42I90@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Thu, 07 Apr 2011 20:45:10 +0300 (IDT) In-reply-to: <71350401EC6C46958001611853D0D855@us.oracle.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.172 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80673 Archived-At: > From: "Drew Adams" > 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.