From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Human-readable file sorting Date: Sat, 20 Feb 2016 18:11:52 +1100 Message-ID: <87si0ndfev.fsf@gnus.org> References: <87povs41xg.fsf@gnus.org> <87bn7c3yms.fsf@gnus.org> <87r3g7exb2.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455952370 4057 80.91.229.3 (20 Feb 2016 07:12:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Feb 2016 07:12:50 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 20 08:12:41 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aX1iY-0004yn-W9 for ged-emacs-devel@m.gmane.org; Sat, 20 Feb 2016 08:12:39 +0100 Original-Received: from localhost ([::1]:58776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aX1iY-0004f3-Ct for ged-emacs-devel@m.gmane.org; Sat, 20 Feb 2016 02:12:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44230) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aX1iI-0004dR-Ge for emacs-devel@gnu.org; Sat, 20 Feb 2016 02:12:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aX1iF-0002JH-9Q for emacs-devel@gnu.org; Sat, 20 Feb 2016 02:12:22 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:40046) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aX1iF-0002JD-2k for emacs-devel@gnu.org; Sat, 20 Feb 2016 02:12:19 -0500 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aX1hs-00005i-Bv for emacs-devel@gnu.org; Sat, 20 Feb 2016 08:11:57 +0100 In-Reply-To: (John Wiegley's message of "Fri, 19 Feb 2016 22:17:30 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aX1hs-00005i-Bv MailScanner-NULL-Check: 1456557117.27091@zf9LovJg5XFNot6ooXHjMw X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:200279 Archived-At: John Wiegley writes: > It sounds reasonable to me. So for changing a single invocation of > `directory-files', would I rely on `file-sorting-method' being a dynamic > variable? Yes, I think so. But I don't think that's something that somebody would do very often... If you want a particular sorting method for one specific call (as opposed to in the normal work flow), you'd most likely say something like `(sort (directory-files dir nil nil t) 'my-special-sort)' or something. I think. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no