unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: "Mattias Engdegård" <mattiase@acm.org>, "Eli Zaretskii" <eliz@gnu.org>
Cc: 36729@debbugs.gnu.org, stephen.berman@gmx.net
Subject: bug#36729: 27.0.50; Unclear total in directory listing
Date: Sun, 21 Jul 2019 14:31:07 -0700 (PDT)	[thread overview]
Message-ID: <26fec456-c6bc-461f-8618-9cbc87cdde67@default> (raw)
In-Reply-To: <CFC507A0-42BE-40FF-AB46-3819B8714EB8@acm.org>

I'm not weighing in here about most of what I see
being discussed in the thread.  And note that I
use Emacs mostly on MS Windows these days, so I
use ls-lisp (and am very grateful for it).

> I understand the history behind Dired's design: at one point in time,
> using the system `ls' was not only a way to re-use existing system
> software, but also gave performance advantages as well as presenting
> the information in a familiar way.  In addition, the `ls' output was
> more or less identical everywhere, making it easy to parse (no
> localisation, no Unicode, no MS-DOS, no fancy GNU or BSD options).

Those are 3 good reasons for Dired being based
on `ls' and its listings: (1) performance, (2)
familiarity, and (3) regularity and simplicity
of design/handling (e.g. parsing).

Another good reason is that a given user's system
`ls' command might support switches and behavior
that ls-lisp does not support.  That one you left
out, and it's the one that most directly concerns
ls-lisp.  Ls-lisp is not, and likely will never
be, a complete replacement for all of the possible
`ls' commands out there.

IMHO, Dired should continue to be based on `ls',
at least in the sense of (1) accepting, displaying,
and working with its output, and (2) accepting and
handling its most common switches.

> The `ls -l' format, in turn, hasn't changed perceptibly for 40 years,
> give or take a few -- not because it was perfect from the start but
> because nobody dared breaking scripts and shell pipelines for minor
> usability advantages.
> 
> Thus we are stuck with silly design elements like:
> - major structure indicated with a discrete 'd' in column 1
> - less-important stuff like the link count and group name prominently
>   displayed
> - the file name itself relegated to the very end as if an afterthought,
>   often going past the margin
> - disk usage counted in 512-byte physical disk sectors (but not
>   including subdirectories, that would be too useful)
> - timestamp parts separated in columns equal in importance to other
>   attributes
> - directory 'size' column almost completely useless
> - little support for file system improvements since 1975

I disagree that the "prominence" of such info is a
problem in Dired nowadays.  It is trivial to use
Dired with such info hidden, and it's trivial to
toggle, to hide/show it.  In my case, I keep details
hidden most of the time.  I typically just show them
temporarily to check the time or byte size of a file
or two.

> We can do better, while retaining the old format for those who have
> grown too accustomed to it (not meant as pejorative).
> It's just not what I had planned for in order to fix this bug.

It sounds instead like your complaint is with `ls'
itself - being 1975-ish or something.  Push to make
`ls' become the way you want it, and let Dired then
adapt to support that, if it happens.

There is a _lot_ to Dired, including use of `find'
output and the ability to show info for files and
directories from unrelated parts of the file system
in the same buffer (a little known, useful feature).

We should not be proposing a Dired replacement for
`ls' output.  (And I didn't think this bug was
supposed to be about that, anyway.)





  reply	other threads:[~2019-07-21 21:31 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
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 [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=26fec456-c6bc-461f-8618-9cbc87cdde67@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).