all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Stephen Berman <stephen.berman@gmx.net>, Eli Zaretskii <eliz@gnu.org>
Cc: "Mattias Engdegård" <mattiase@acm.org>, 36729@debbugs.gnu.org
Subject: bug#36729: 27.0.50; Unclear total in directory listing
Date: Fri, 19 Jul 2019 15:18:54 +0000 (UTC)	[thread overview]
Message-ID: <26f9b413-c5b5-479f-91b9-2c8c51b43796@default> (raw)
In-Reply-To: <87sgr2887n.fsf@gmx.net>

> >> 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 512-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'.
> 
> 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 Time)
 Time of last modification:  Mon Apr 22 04:48:30 2019 (Pacific Daylight Time)
 Time of last status change: Wed Jul 25 08:00:46 2018 (Pacific Daylight Time)
 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.





  reply	other threads:[~2019-07-19 15:18 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-19 10:15 bug#36729: 27.0.50; Unclear total in directory listing Mattias Engdegård
2019-07-19 12:16 ` Eli Zaretskii
2019-07-19 13:28   ` Stephen Berman
2019-07-19 15:18     ` Drew Adams [this message]
2020-08-22 14:02     ` Lars Ingebrigtsen
2020-08-26 10:10       ` Stephen Berman
2020-10-07  4:44         ` Lars Ingebrigtsen
2020-10-07  7:50           ` Eli Zaretskii
2020-10-07 10:03             ` Mattias Engdegård
2020-10-07 12:14               ` Eli Zaretskii
2020-10-07 13:50                 ` Mattias Engdegård
2020-10-07 14:23                   ` Eli Zaretskii
2020-10-07 14:52                     ` Mattias Engdegård
2020-10-07 16:40                     ` Michael Albinus
2020-10-08  7:45                       ` Robert Pluim
2020-10-08  8:37                         ` Michael Albinus
2019-07-21  8:19   ` Mattias Engdegård
2019-07-21 14:29     ` Eli Zaretskii
2019-07-21 18:36       ` Mattias Engdegård
2019-07-21 21:31         ` Drew Adams
2019-07-22  2:32           ` Eli Zaretskii
2019-07-22  2:30         ` Eli Zaretskii
2019-07-26 18:30         ` Juri Linkov
2020-08-22 14:00 ` Lars Ingebrigtsen
     [not found] <<048FD91B-CDA0-4444-8F6F-C5B2F5C595CD@acm.org>
     [not found] ` <<83k1ceusn1.fsf@gnu.org>
     [not found]   ` <<68D3B8E0-26F0-474A-B76D-320E523DBDDC@acm.org>
     [not found]     ` <<8336izsbok.fsf@gnu.org>
     [not found]       ` <<CFC507A0-42BE-40FF-AB46-3819B8714EB8@acm.org>
     [not found]         ` <<26fec456-c6bc-461f-8618-9cbc87cdde67@default>
     [not found]           ` <<83k1care8v.fsf@gnu.org>
2019-07-22  2:43             ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=26f9b413-c5b5-479f-91b9-2c8c51b43796@default \
    --to=drew.adams@oracle.com \
    --cc=36729@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=mattiase@acm.org \
    --cc=stephen.berman@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.