From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.help Subject: RE: sorting by filename with find-dired Date: Wed, 29 Nov 2017 11:57:47 -0600 Message-ID: <62747.67624.48175.23070@gargle.gargle.HOWL> References: <61311.6304.827356.23070@gargle.gargle.HOWL> <49a6a312-82f5-47b1-8aab-55845972bec5@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1511978425 639 195.159.176.226 (29 Nov 2017 18:00:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 29 Nov 2017 18:00:25 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 29 19:00:18 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eK6ed-0007rQ-Du for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Nov 2017 19:00:15 +0100 Original-Received: from localhost ([::1]:44494 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eK6ej-0004LO-72 for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Nov 2017 13:00:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eK6cJ-0002tx-AH for help-gnu-emacs@gnu.org; Wed, 29 Nov 2017 12:57:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eK6cG-0001SS-8k for help-gnu-emacs@gnu.org; Wed, 29 Nov 2017 12:57:51 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eK6cG-0001S4-53; Wed, 29 Nov 2017 12:57:48 -0500 Original-Received: from lukas.physics.niu.edu ([131.156.224.124]:36408 helo=lukas) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1eK6cF-0003B1-Rq; Wed, 29 Nov 2017 12:57:47 -0500 In-Reply-To: <49a6a312-82f5-47b1-8aab-55845972bec5@default> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115135 Archived-At: On Wed Nov 29 2017 Drew Adams wrote: > If you use library `find-dired+.el' then, on MS Windows, > `find-ls-option' uses the value of `dired-listing-switches'. > > IOW, on Windows, `find-ls-option' is (cons "-ls" dired-listing-switches). I am sorry, this doesn't help me with GNU find under a GNU/linux system. The way I understand it the problem is that the sort order of the output of find reflects the order of the files "on disk". Then find-dired takes this output without sorting and the cdr of find-ls-option is not really relevant for this. (So I believe the same problem exists if one wanted to have any other well-defined sort order in the dired buffer generated by find-dired.) A custom hook in find-dired might help.