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 10:24:09 +0200 (IST)

On Tue, 11 Dec 2001, Paul Jarc wrote:

> > Calling ls TWICE? Why does Emacs have to call "ls" AT ALL?
> 
> Duplicating ls's formatting code could be considered wasteful.  Maybe
> a shared library is in order.
> 
> > Why not use the relevant POSIX.1 API calls for reading directories?
> 
> That's what I was suggesting with directory-files and file-attributes
> (the Elisp bindings for readdir and stat, nearly).

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.  ls-lisp simply calls functions which end up calling the
same strftime which `ls' calls for its thing.  So you have the same
issues as with `ls's output.



reply via email to

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