bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ls default time style


From: Eli Zaretskii
Subject: Re: ls default time style
Date: Wed, 12 Dec 2001 19:01:38 +0200

> From: address@hidden (Paul Jarc)
> Date: Wed, 12 Dec 2001 11:11:14 -0500
> 
> > Emacs already has all that; see ls-lisp.el.  It is used on systems
> > where `ls' isn't a standard program.
> >
> > However, I don't really see how this can help solve the Dired
> > problems.
> 
> It makes the stat() information directly accessible to Emacs; Emacs
> doesn't have to parse a date format that was meant for human
> consumption.

There's a misunderstanding here: Emacs does not parse `ls' output to
know the file's stats.  It parses that because it needs to know where
in the buffer does the file name begin.  It needs to do that because
all the Dired commands call a function that extracts the file name
from the current line in the Dired buffer.  This is done long after
`ls' already exited, so an alternative to that would be to store the
raw info somewhere else, in some temporary buffer or some other data
structure.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]