From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#36729: 27.0.50; Unclear total in directory listing Date: Fri, 19 Jul 2019 15:18:54 +0000 (UTC) Message-ID: <26f9b413-c5b5-479f-91b9-2c8c51b43796@default> References: <048FD91B-CDA0-4444-8F6F-C5B2F5C595CD@acm.org> <83k1ceusn1.fsf@gnu.org> <87sgr2887n.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="83012"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , 36729@debbugs.gnu.org To: Stephen Berman , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 19 17:20:41 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hoUga-000LTy-Mj for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Jul 2019 17:20:40 +0200 Original-Received: from localhost ([::1]:46226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoUgZ-0000SS-LQ for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Jul 2019 11:20:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58854) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoUgW-0000SA-Bt for bug-gnu-emacs@gnu.org; Fri, 19 Jul 2019 11:20:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hoUgG-0000SW-1c for bug-gnu-emacs@gnu.org; Fri, 19 Jul 2019 11:20:26 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47631) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hoUfy-0000KY-JR for bug-gnu-emacs@gnu.org; Fri, 19 Jul 2019 11:20:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hoUfy-0005mK-7p for bug-gnu-emacs@gnu.org; Fri, 19 Jul 2019 11:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Jul 2019 15:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36729 X-GNU-PR-Package: emacs Original-Received: via spool by 36729-submit@debbugs.gnu.org id=B36729.156354955522136 (code B ref 36729); Fri, 19 Jul 2019 15:20:02 +0000 Original-Received: (at 36729) by debbugs.gnu.org; 19 Jul 2019 15:19:15 +0000 Original-Received: from localhost ([127.0.0.1]:56452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hoUfC-0005kx-Np for submit@debbugs.gnu.org; Fri, 19 Jul 2019 11:19:15 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:48244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hoUfA-0005kh-Jc for 36729@debbugs.gnu.org; Fri, 19 Jul 2019 11:19:13 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6JF9L7E108628; Fri, 19 Jul 2019 15:19:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=yCVxd3Aj5XFKZe4x2b+lComMMntu6+Few0d0koD5pxs=; b=EPTgbBa8mXu+srxyknsfMUFt6C0qD8zCAv48mQFgyZ06LSX+OqDUO6izKQUWAG5Rrjxt 0CrFKOVGSAyk5ftP3DLHqr7cSc5aZec8Qpbhauvo3hFYBze5/OWwtWa7MYzqRc+pbGiF dwH6vkDvhuzHm5aQpBMwrXLfWpO+NzNwxxtp4zl0cybkOvnTXSd7EZHgNsd5o2L3Zq6q 5fETJUUQWa+rUgsxikKXFLpn26sONHDLJ0RrHWlb6QA0JPa6Sj2IhaiaOFSdEJePawnU 1otXnXJraGQ4yfkfpvWOkpc467lTFCA0XdfxYoCTQeUrrK0HE7YL7BKoO09s1Sen740w QQ== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 2tq78q7aa5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 Jul 2019 15:19:00 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6JF7Zwu024749; Fri, 19 Jul 2019 15:19:00 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 2ttc8g7kgc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 Jul 2019 15:19:00 +0000 Original-Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x6JFItoF021584; Fri, 19 Jul 2019 15:18:56 GMT In-Reply-To: <87sgr2887n.fsf@gmx.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4861.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9322 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907190166 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9322 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907190166 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:163427 Archived-At: > >> The first line of a directory listing reads > >> > >> total used in directory 71752 available 65.2 GiB > >> > >> where it is a mystery what the first number represents. Often it is 51= 2-byte > >> blocks, which is confusing and not very useful, and cannot easily be > >> compared with the 'available' number (which is crystal clear). > > > > Feel free to suggest a clarification in the doc string of 'dired'. >=20 > An alternative is to do for "total used" what was done for "available". > On systems that use `ls' (at least the GNU version), users can do that > by setting the environment variable BLOCK_SIZE, but since the change to > the display of "available" was unconditional (if I'm not mistaken), we > could do the same for the display of "total used", e.g. as in the below > patch. (But since this won't work on systems that don't use GNU `ls', > either another solution just for them or a different general one would > be needed.) FWIW, my `ls-lisp+.el' code gives this: files 38/38 space used 2563 available 103423152 and mouse-over (`help-echo') on the `files 38/38' says: Files shown / total files in directory and mouse-over on the `space used ...' part says: Kbytes used in directory, Kbytes available on disk and `RET' or `mouse-2' anywhere on that line pops up `*Help* with info like this (` help-fns+.el' is also needed, for function `describe-file'): g:/usr/foo/bar -------------- File Type: Directory Permissions: drwxrwxrwx Time of last access: Mon Apr 22 04:48:30 2019 (Pacific Daylight Tim= e) Time of last modification: Mon Apr 22 04:48:30 2019 (Pacific Daylight Tim= e) Time of last status change: Wed Jul 25 08:00:46 2018 (Pacific Daylight Tim= e) Number of links: 1 User ID (UID): 68752 Group ID (GID): 312 Inode: 281474976872649 Device number: 315267003 Maybe some such aids could be added to vanilla Dired.