From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#36110: find-dired not sorted on any field nor provides a way Date: Fri, 14 Jun 2019 00:30:05 +0300 Organization: LINKOV.NET Message-ID: <87r27xglua.fsf@mail.linkov.net> References: <875zpjipe7.8.fsf@jidanni.org> <87y32efp01.fsf@mail.linkov.net> <87tvd2p7gi.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="87091"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 36110@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 14 00:33:14 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 1hbYHR-000MVF-Oo for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Jun 2019 00:33:14 +0200 Original-Received: from localhost ([::1]:46164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbYHQ-0007DA-PD for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Jun 2019 18:33:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46480) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbYHH-000789-OI for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2019 18:33:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbYHG-0008PP-LB for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2019 18:33:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50963) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hbYHG-0008Ot-3n for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2019 18:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hbYHF-0001gq-U1 for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2019 18:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Jun 2019 22:33: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.15604651576464 (code B ref 36110); Thu, 13 Jun 2019 22:33:01 +0000 Original-Received: (at 36110) by debbugs.gnu.org; 13 Jun 2019 22:32:37 +0000 Original-Received: from localhost ([127.0.0.1]:36274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbYGr-0001gC-9d for submit@debbugs.gnu.org; Thu, 13 Jun 2019 18:32:37 -0400 Original-Received: from brown.birch.relay.mailchannels.net ([23.83.209.23]:23165) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbYGn-0001g0-2r for 36110@debbugs.gnu.org; Thu, 13 Jun 2019 18:32:35 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id AC6D7141A88; Thu, 13 Jun 2019 22:32:31 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a78.g.dreamhost.com (100-96-88-48.trex.outbound.svc.cluster.local [100.96.88.48]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 2A7D2141AF3; Thu, 13 Jun 2019 22:32:31 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a78.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Thu, 13 Jun 2019 22:32:31 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Macabre-Cold: 324a12405c644ef2_1560465151545_1095653909 X-MC-Loop-Signature: 1560465151545:3781470199 X-MC-Ingress-Time: 1560465151544 Original-Received: from pdx1-sub0-mail-a78.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a78.g.dreamhost.com (Postfix) with ESMTP id 4CBED81987; Thu, 13 Jun 2019 15:32:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=pJWFbHAMfxTiBZ17MhCR8twjpLI=; b= gphD7QiQ6ItZA3IdMNcqrtk7saCeg9VG0/BXYQLHoNpTZ44O99hv7v4dpbfPzhp3 aYmGXfFwOvyuMjs5VP+i7741UD79DShXZS8khhu9ubefpgeO7Hq0ll7+f/PgEX5l DCs1sHWbF7xkKrZW75+I2RILzCpDblwBysqrqoOS97A= Original-Received: from mail.jurta.org (m91-129-109-209.cust.tele2.ee [91.129.109.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a78.g.dreamhost.com (Postfix) with ESMTPSA id 6D2ED81971; Thu, 13 Jun 2019 15:32:24 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a78 In-Reply-To: <87tvd2p7gi.5.fsf@jidanni.org> ("=?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson"'s message of "Fri, 07 Jun 2019 08:25:33 +0800") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrudeitddguddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdelrddvtdelnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtledrvddtledprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehjihgurghnnhhisehjihgurghnnhhirdhorhhgnecuvehluhhsthgvrhfuihiivgeptd 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:160532 Archived-At: >>> Long ago I customized find-ls-option to this value >>> >>> (setq find-ls-option '("-exec ls -ld {} \\;" . "-ld")) >>> >>> and forgot about such problems because this value produces >>> the same output as Dired. >> >> Same here, although with this (minor) difference: >> >> ("-exec ls -ld {} \";\"" . "-ld") >> >> Dunno where I got that or when I customized the value to it. > > That's because nobody documented it in (info "(emacs) Dired and Find") ! > > So somebody please document it, else who likes going around with their > find-dired in "ls -U" order? What sense would that make? The following patch documents it: diff --git a/doc/emacs/dired.texi b/doc/emacs/dired.texi index 9f454ea2ad..2befcf1bbd 100644 --- a/doc/emacs/dired.texi +++ b/doc/emacs/dired.texi @@ -1340,7 +1340,9 @@ Dired and Find The format of listing produced by these commands is controlled by the variable @code{find-ls-option}. This is a pair of options; the first specifying how to call @command{find} to produce the file listing, -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")} @findex locate @findex locate-with-filter