From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#36110: find-dired not sorted on any field nor provides a way Date: Thu, 13 Jun 2019 19:40:11 -0400 Message-ID: References: <875zpjipe7.8.fsf@jidanni.org> <87y32efp01.fsf@mail.linkov.net> <87tvd2p7gi.5.fsf@jidanni.org> <87r27xglua.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="147748"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cc: 36110@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 14 01:41:56 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hbZLv-000cMY-87 for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Jun 2019 01:41:55 +0200 Original-Received: from localhost ([::1]:46326 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbZLu-0008TU-7e for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Jun 2019 19:41:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33165) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbZL5-0008S9-St for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2019 19:41:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbZL4-0007al-TE for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2019 19:41:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50981) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hbZL3-0007Zq-Rq for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2019 19:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hbZL3-0003Nn-Mw for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2019 19:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Jun 2019 23:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36110 X-GNU-PR-Package: emacs Original-Received: via spool by 36110-submit@debbugs.gnu.org id=B36110.156046924512975 (code B ref 36110); Thu, 13 Jun 2019 23:41:01 +0000 Original-Received: (at 36110) by debbugs.gnu.org; 13 Jun 2019 23:40:45 +0000 Original-Received: from localhost ([127.0.0.1]:36292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbZKn-0003NC-7N for submit@debbugs.gnu.org; Thu, 13 Jun 2019 19:40:45 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52547) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbZKl-0003Mz-Cn for 36110@debbugs.gnu.org; Thu, 13 Jun 2019 19:40:44 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hbZKe-0007QG-5w; Thu, 13 Jun 2019 19:40:37 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1hbZKH-0005cH-17; Thu, 13 Jun 2019 19:40:14 -0400 X-Spook: Infection Ron Brown Rand Corporation Calderon Smuggling X-Ran: VlyH#*Sw@B0N5q%wd!R!A|v#j>N6,Bwdx;ww=Z8Q (Juri Linkov's message of "Fri, 14 Jun 2019 00:30:05 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:160533 Archived-At: Juri Linkov wrote: >>>> Long ago I customized find-ls-option to this value >>>> >>>> (setq find-ls-option '("-exec ls -ld {} \\;" . "-ld")) But that has nothing to do with sorting? find -exec ls -ld {} ";" will give unsorted output, as always. > -and the second telling Dired to parse the output. > +and the second telling Dired to parse the output. To sort file names > +lexicographically, you can customize @code{find-ls-option} to the value > +@code{'("-exec ls -ld @{@} +" . "-ld")} Oh, I see you've changed it to the "+" form. It looks like this does give sorted output, but I find it surprising. Is it assured? Anyway, this issue has been very recently fixed in bug#29513 (of which this is a duplicate) via find-dired-refine-function. So I suggest not documenting the above.