emacs-devel
[Top][All Lists]
Advanced

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

Re: dired and ls


From: John Wiegley
Subject: Re: dired and ls
Date: Fri, 19 Feb 2016 22:19:58 -0800
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin)

>>>>> Lars Ingebrigtsen <address@hidden> writes:

> If we instead had `directory-files-with-attributes' in C, we could just do
> what "ls" does, which is... opening the directory, reading it, and then
> statting all the files. (I just straced "ls -l".) So it should be just as
> fast? I think? And if you have your dired set up not to show ownership, date
> or file permissions, you don't even have to stat anything on Linux/BSD --
> the d_type says whether something is a file or a directory directly.

The /bin/ls process is asynchronous, so a really long "ls -R" listing doesn't
need to block Emacs, does it?

> Hm... and there are a lot of functions in Emacs that only wants to know the
> file name and whether it's a directory or not... I mean, basically every
> file prompting function only needs that info...

Are you also suggesting another improvement (Rubs hands expectantly)?  Or does
this follow from the above, in which case I missed the implication...

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2



reply via email to

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