unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: don@donarmstrong.com (Emacs bug Tracking System)
To: Chong Yidong <cyd@stupidchicken.com>
Subject: bug#714: marked as done (directory-files:  Doc string is  irritatingly vague wrt sorting.)
Date: Fri, 15 Aug 2008 13:25:05 -0700	[thread overview]
Message-ID: <handler.714.D714.121883150330593.ackdone@emacsbugs.donarmstrong.com> (raw)
In-Reply-To: 20080813191141.GA2825@muc.de

[-- Attachment #1: Type: text/plain, Size: 885 bytes --]


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

[-- Attachment #2: Type: message/rfc822, Size: 3057 bytes --]

From: Alan Mackenzie <acm@muc.de>
To: bug-gnu-emacs@gnu.org
Subject: directory-files:  Doc string is irritatingly vague wrt sorting.
Date: Wed, 13 Aug 2008 19:11:41 +0000
Message-ID: <20080813191141.GA2825@muc.de>

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).




[-- Attachment #3: Type: message/rfc822, Size: 1000 bytes --]

From: Chong Yidong <cyd@stupidchicken.com>
To: Alan Mackenzie <acm@muc.de>
Cc: 714-done@emacsbugs.donarmstrong.com
Subject: Re: directory-files:  Doc string is irritatingly vague wrt sorting.
Date: Fri, 15 Aug 2008 16:19:06 -0400
Message-ID: <877iai8211.fsf@cyd.mit.edu>

I've clarified the docstring.  Thanks.


      parent reply	other threads:[~2008-08-15 20:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <877iai8211.fsf@cyd.mit.edu>
2008-08-13 19:11 ` bug#714: directory-files: Doc string is irritatingly vague wrt sorting Alan Mackenzie
2008-08-15 19:14   ` Glenn Morris
2008-08-15 20:25   ` Emacs bug Tracking System [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=handler.714.D714.121883150330593.ackdone@emacsbugs.donarmstrong.com \
    --to=don@donarmstrong.com \
    --cc=cyd@stupidchicken.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).