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: Paul Jarc
Subject: Re: ls default time style
Date: Tue, 11 Dec 2001 14:07:25 -0500
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-redhat-linux-gnu)

Markus Kuhn <address@hidden> wrote:
> Paul Jarc wrote on 2001-12-11 18:58 UTC:
>> Emacs would parse the information out of the POSIX format, and then
>> format it for the current locale just as ls would have.  Other
>> options: call ls twice, once in the current locale, for display, and
>> once in POSIX, for parsing; or scrap ls and use directory-files and
>> file-attributes.
>
> 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).


paul



reply via email to

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