From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: dired-du Date: Fri, 26 May 2017 09:45:42 -0400 Message-ID: <65975ff9-9ed6-8ca0-7a05-3172ec1f09c2@gmail.com> References: <8737brwz2a.fsf@calancha-pc> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1495806381 31313 195.159.176.226 (26 May 2017 13:46:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 26 May 2017 13:46:21 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 26 15:46:17 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEFZI-00080j-QS for ged-emacs-devel@m.gmane.org; Fri, 26 May 2017 15:46:16 +0200 Original-Received: from localhost ([::1]:36879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEFZO-0003OI-Cc for ged-emacs-devel@m.gmane.org; Fri, 26 May 2017 09:46:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEFYr-0003NQ-5W for emacs-devel@gnu.org; Fri, 26 May 2017 09:45:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEFYn-0002QJ-7U for emacs-devel@gnu.org; Fri, 26 May 2017 09:45:49 -0400 Original-Received: from mail-qt0-x231.google.com ([2607:f8b0:400d:c0d::231]:36084) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dEFYn-0002QB-3p for emacs-devel@gnu.org; Fri, 26 May 2017 09:45:45 -0400 Original-Received: by mail-qt0-x231.google.com with SMTP id f55so8417605qta.3 for ; Fri, 26 May 2017 06:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=rnY0RD2LeNtUHah6sdCisINofYqSSnvE9DAHXuB2CvY=; b=qZ4wFmX4TqR9f6Hpk2XIDFIKgSLTQGvTc4X5dRxdCJ6oHFXWMfNU6/FKURR0o+5xFS wU1L0T7ndDlsxjSgWN5OS6MngkCNzRjb4r/aC2+epfIRUHcItGoUOctXiHChjLSCgvM8 zb5BxZNJ0T9iJCG6vf2sbXZarsJxfND7Yhl+OT5e0XELMXrA8jPfG6YdgcODtjMeW1B/ GZMSjWWH0Z+bMCbRvOTkwwkwvN22MMaL+IFaD2Gt4Vdh95M9soMYOuhU2KxlJbJVc0Qg NWvCroSWBHuiol9oRm3pN+bzxu3zsJOH3MTCkda1JDYJCOJMeh8A7SRr0XA0EbhLlV1y aXBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=rnY0RD2LeNtUHah6sdCisINofYqSSnvE9DAHXuB2CvY=; b=pLkOQKg1eQXq6dRyh3FmMyEJmZmamrpyKE/K1qbuVGoESZJZTfOgJLChyDtIJeRzZY mv0JcKQo/8QeHXSHDLbhSdApura9jF1v2xcq8ap/IwUIeMEjt/8PiXFouv9pkzypx+nV Y7WtVyEEh0JRjosJhmsBRRhTp5OBLc89QanOKiVXDuQhF5o8vXG98B78nN5Y8XZNZxPv 2ZbvkPx8spfdPdl6zqFTb86cti79o8wjXv9J1SOa2xEhmquR6FGKgF9Uv3QEuH53yMQc pXPaBJ9s+xi6AXFLFKmD/hT0JSthcDS2/7V+wGu3oF0kvSA5VXwigvyba5ZmnWPdQXyC zzOw== X-Gm-Message-State: AODbwcCJCBjUANeeRF94aPozpl0JqIsNQuUhyS0eSFwRZ465hMuu1LA/ ISUZekfSF21AbNwhkks= X-Received: by 10.200.4.147 with SMTP id s19mr2453976qtg.50.1495806344247; Fri, 26 May 2017 06:45:44 -0700 (PDT) Original-Received: from [18.189.17.156] (dhcp-18-189-17-156.dyn.MIT.EDU. [18.189.17.156]) by smtp.gmail.com with ESMTPSA id n17sm520066qtb.6.2017.05.26.06.45.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 May 2017 06:45:43 -0700 (PDT) In-Reply-To: <8737brwz2a.fsf@calancha-pc> Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215216 Archived-At: On 2017-05-26 09:02, Tino Calancha wrote: > New library implementing a Dired interface for `du'. This is nice, but why isn't this directly in dired? I don't think we should assume that Emacs is feature-frozen and evolve it only through new packages. Otherwise we risk fragmentation, and we contribute to the general feeling that Emacs isn't optimally usable right out of the box. (I had the same comments about your other recent library, kmb; these are generally useful features: they should go into the base distribution, or at least be discussed). Cheers, Clément. > I) > This library defines a minor mode `dired-du-mode' to display > the recursive size of directories in Dired buffers. This mode > uses the external `du' program when available. Otherwise, it > performs a rough estimation with Lisp. > > II) > In addition, this file provides a command `dired-du-count-sizes', > to show the total size of the marked files. By default, it shows > the size of the files marked with `dired-marker-char'. If `dired-du-mode' > is disabled, then ignores the size of directories. Otherwise, it takes > in account the size of the dirs. > When called with a prefix prompts for the marks and asks if the dirs must > be taken in account. > > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > The idea of this library arose after bugs 22829 and 22892. > > Some people have shown interest on this feature elsewhere: > https://emacs.stackexchange.com/questions/20766/display-recursive-folder-sizes-in-line-in-dired > https://superuser.com/questions/462079/how-can-i-display-folder-sizes-in-emacs-dired > > The file is available for inspection in the following Elpa repo. branch: > scratch/dired-du > >