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

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

bug#714: marked as done (directory-files: Doc string is irritatingly v


From: Emacs bug Tracking System
Subject: bug#714: marked as done (directory-files: Doc string is irritatingly vague wrt sorting.)
Date: Fri, 15 Aug 2008 13:25:05 -0700

Your message dated Fri, 15 Aug 2008 16:19:06 -0400
with message-id <877iai8211.fsf@cyd.mit.edu>
and subject line Re: directory-files:  Doc string is irritatingly vague wrt 
sorting.
has caused the Emacs bug report #714,
regarding directory-files:  Doc string is irritatingly vague wrt sorting.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact don@donarmstrong.com
immediately.)


-- 
714: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=714
Emacs Bug Tracking System
Contact don@donarmstrong.com with problems
--- Begin Message --- Subject: directory-files: Doc string is irritatingly vague wrt sorting. Date: Wed, 13 Aug 2008 19:11:41 +0000 User-agent: Mutt/1.5.9i
Hi, Emacs!

The doc string for directory files is:

    directory-files is a built-in function in `src/dired.c'.
    (directory-files DIRECTORY &optional FULL MATCH NOSORT)

    Return a list of names of files in DIRECTORY.
    There are three optional arguments:
    If FULL is non-nil, return absolute file names.  Otherwise return names
    that are relative to the specified directory.
    If MATCH is non-nil, mention only file names that match the regexp MATCH.
    If NOSORT is non-nil, the list is not sorted--its order is unpredictable.
     NOSORT is useful if you plan to sort the result yourself.

This sort of implies (but doesn't state) that if NOSORT is nil, the
returned list is sorted.

More importantly, it doesn't state the predicate used for the sorting.
"Obviously", this will be some sort of alphabetical sort, but this gets
complicated for mixed case filenames and (more importantly) for character
sets which aren't vanilla ASCII.

-- 
Alan Mackenzie (Nuremberg, Germany).




--- End Message ---
--- Begin Message --- Subject: Re: directory-files: Doc string is irritatingly vague wrt sorting. Date: Fri, 15 Aug 2008 16:19:06 -0400
I've clarified the docstring.  Thanks.


--- End Message ---

reply via email to

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