From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#5762: 24.0.50; Show available disk space with -h option when using ls with -h option Date: Wed, 11 Apr 2012 18:33:20 +0200 Message-ID: <87pqbez0rz.fsf@gmail.com> References: <87y6hitdmp.fsf@tux.homenetwork> <874ok6rxd7.fsf@tux.homenetwork> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334162052 21198 80.91.229.3 (11 Apr 2012 16:34:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Apr 2012 16:34:12 +0000 (UTC) Cc: 5762@debbugs.gnu.org To: Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 11 18:34:11 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SI0Ue-0001vQ-Ab for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Apr 2012 18:34:04 +0200 Original-Received: from localhost ([::1]:36370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SI0Ud-0006cg-Mx for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Apr 2012 12:34:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SI0Ua-0006cY-9P for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 12:34:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SI0UV-0004sz-7a for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 12:33:59 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55804) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SI0UV-0004sq-1x for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 12:33:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SI0Va-0002CY-0V for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 12:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Apr 2012 16:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5762 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 5762-submit@debbugs.gnu.org id=B5762.13341620858439 (code B ref 5762); Wed, 11 Apr 2012 16:35:01 +0000 Original-Received: (at 5762) by debbugs.gnu.org; 11 Apr 2012 16:34:45 +0000 Original-Received: from localhost ([127.0.0.1]:52342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SI0VG-0002C1-6s for submit@debbugs.gnu.org; Wed, 11 Apr 2012 12:34:44 -0400 Original-Received: from mail-we0-f172.google.com ([74.125.82.172]:34442) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SI0V9-0002Bm-OW for 5762@debbugs.gnu.org; Wed, 11 Apr 2012 12:34:40 -0400 Original-Received: by werb10 with SMTP id b10so776519wer.3 for <5762@debbugs.gnu.org>; Wed, 11 Apr 2012 09:33:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=KqL1pIont5fn1hmVRDd5o0jwtL7W+ZR5726U4Njii5k=; b=o2SPc7xFJX8jwcvDILU56A4wOKoK5ZUqo+/7BrCLuryJonyPhrdGP8mIKrvUKVqMXR CywBdlg7xVP8wyRUAH/oIA0rybSZMHiCsmsXR3NLRYdadXZIzngfY5HKsHCsGlrYSISr oKk1WZaTd3GdMQ7TWKjsOVCp7xISzXXACVmBlfACCH4uVLA+I4y+QYj9oXyiPl4p6npk ChyCYVxTODaXp5RpCN4PDb9qsTE6BUz9wL4GLFE2FALk3so8r42s9JMiiqKQnaYHzXE3 edbtMBctUz7izF31mAFYSnT5fCtBLfVMlBKj3tyq1au91Yn7Zz3DMoJL/Mnx/sd5jOhV 9kgQ== Original-Received: by 10.180.92.71 with SMTP id ck7mr17693975wib.21.1334162005684; Wed, 11 Apr 2012 09:33:25 -0700 (PDT) Original-Received: from thierry-MM061 (lbe83-2-78-243-104-167.fbx.proxad.net. [78.243.104.167]) by mx.google.com with ESMTPS id n8sm11207842wix.10.2012.04.11.09.33.22 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 11 Apr 2012 09:33:24 -0700 (PDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Wed, 11 Apr 2012 16:38:47 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:58824 Archived-At: Hi Lars, this old bug come back from hell! :-). Lars Magne Ingebrigtsen writes: > Thierry Volpiatto writes: > >>> in dired when using `dired-listing-switches' with -h option, the second >>> line of dired buffer is like: >>> >>> total used in directory 24M available 19275100 >>> >>> it should show: >>> >>> total used in directory 24M available 19G > > Makes sense. > > However: > > + (let* ((directory-free-space-args (if (string-match "h" dired-actual-switches) > > This would match "--hide" or anything else that contains an "h", > wouldn't it? Why one would have "--hide" in this var. See `dired-listing-switches', I think you can't put something else that contain "h" into it (I use -alh here), and "--hide" AFAIK is not allowed there. But verify, I don't use dired anymore. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997