From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: patch for Dired second header line info Date: Sun, 02 Mar 2008 19:57:38 +0200 Organization: JURTA Message-ID: <87zlth7zwh.fsf@jurta.org> References: <000101c87b38$1dcd2db0$0600a8c0@us.oracle.com> <87fxv9zxqv.fsf@jurta.org> <000f01c87c3c$22f7db50$0600a8c0@us.oracle.com> <87y791mess.fsf@jurta.org> <002801c87c82$539474d0$0600a8c0@us.oracle.com> <002901c87c8d$c299c730$0600a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204482524 30663 80.91.229.12 (2 Mar 2008 18:28:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Mar 2008 18:28:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 02 19:29:10 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JVsvo-0005gL-Mn for ged-emacs-devel@m.gmane.org; Sun, 02 Mar 2008 19:29:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JVsvH-0006yF-PN for ged-emacs-devel@m.gmane.org; Sun, 02 Mar 2008 13:28:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JVstx-0006Q6-Te for emacs-devel@gnu.org; Sun, 02 Mar 2008 13:27:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JVstw-0006P3-Df for emacs-devel@gnu.org; Sun, 02 Mar 2008 13:27:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JVstv-0006Oq-VV for emacs-devel@gnu.org; Sun, 02 Mar 2008 13:27:08 -0500 Original-Received: from relay02.kiev.sovam.com ([62.64.120.197]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JVstv-0003Oj-Jm for emacs-devel@gnu.org; Sun, 02 Mar 2008 13:27:08 -0500 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay02.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1JVstt-0005d0-ED; Sun, 02 Mar 2008 20:27:05 +0200 In-Reply-To: <002901c87c8d$c299c730$0600a8c0@us.oracle.com> (Drew Adams's message of "Sun, 2 Mar 2008 09:49:26 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-unknown-linux-gnu) X-Scanner-Signature: 7ffaa6bc246e67c9b1a22e0c753f4a43 X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 2347 [Mar 2 2008] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: none X-SpamTest-Rate: 11 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:91085 Archived-At: >> > Sorry, it didn't appear to me that the number of listed >> > files would be useful too. But we can display both numbers on >> > the same line using the traditional notation "listed/total"... >> >> Good idea. Go for it. And perhaps that will obviate the need >> for `files listed' instead of `files'. > > Attached: patch for this. The text is now: > > files 420/694 space used 19646 available 56456000 The string `total' is the standard string printed by `ls' so maybe we should keep it. Also what do you think about further compacting this line as: total files 420/694 space 19646/56456000 or using the same function in `size-indication-mode' that displays the size in the mode line in human-readable format: total files 420/694 space 19KB/56MB Also we could add a tooltip explaining what these numbers mean if they are not obvious. > Meaning: 420 files shown now, out of 694 total in the directory. Subdirs are > treated the same way. In your patch maybe better to move dired functionality to dired.el or dired-aux.el and rename `count-dired-files' to `dired-count-files'. -- Juri Linkov http://www.jurta.org/emacs/