From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 05 19:36:11 2019 Received: (at submit) by debbugs.gnu.org; 5 Jun 2019 23:36:11 +0000 Received: from localhost ([127.0.0.1]:48460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYfRz-0005VU-2M for submit@debbugs.gnu.org; Wed, 05 Jun 2019 19:36:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35945) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYfRv-0005VF-FO for submit@debbugs.gnu.org; Wed, 05 Jun 2019 19:36:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:34194) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hYfRp-0002NA-Q2 for submit@debbugs.gnu.org; Wed, 05 Jun 2019 19:36:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYfRo-00070b-Oy for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2019 19:36:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_50,FROM_EXCESS_BASE64, RCVD_IN_DNSWL_NONE,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hYfRl-000273-Gn for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2019 19:35:58 -0400 Received: from bird.apple.relay.mailchannels.net ([23.83.208.17]:3605) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hYfRk-00021t-U0 for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2019 19:35:57 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 4AEEF2C2E1D for ; Wed, 5 Jun 2019 23:35:53 +0000 (UTC) Received: from pdx1-sub0-mail-a98.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 B8BCD2C30C1 for ; Wed, 5 Jun 2019 23:35:52 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a98.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); Wed, 05 Jun 2019 23:35:53 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Rock-Coil: 1cbb00467d26fc40_1559777753131_15404081 X-MC-Loop-Signature: 1559777753131:3387263546 X-MC-Ingress-Time: 1559777753130 Received: from pdx1-sub0-mail-a98.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a98.g.dreamhost.com (Postfix) with ESMTP id 2445B7FCA7 for ; Wed, 5 Jun 2019 16:35:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=jidanni.org; bh=i9PEI3+8fDCRaQvRO+ x5nNjAuSg=; b=p/JLGO7wykko6fuqEK/7JM48LVSnnjeeleLAiZnF6sZA0rEohc QH/D1BUrhtoEMXs55U6cBhyePt7aa/z0c7/JAwy/JZpzdObxVb/JTM1A4gAAT5OK JLjmUWnakqthmLuX7rMEVDhUm75n5Nndvz/INLbRsy2IuptIfAs5cbRpY= Received: from jidanni.org (111-246-85-180.dynamic-ip.hinet.net [111.246.85.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a98.g.dreamhost.com (Postfix) with ESMTPSA id 655FA7FC38 for ; Wed, 5 Jun 2019 16:35:48 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a98 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs@gnu.org Subject: find-dired not sorted on any field nor provides a way Date: Thu, 06 Jun 2019 07:27:44 +0800 Message-ID: <875zpjipe7.8.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrudegfedgvdegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtgfesthekredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecukfhppeduuddurddvgeeirdekhedrudektdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepjhhiuggrnhhnihdrohhrghdpihhnvghtpeduuddurddvgeeirdekhedrudektddprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.208.17 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) find-dired (info "(emacs) Dired and Find") is great, except it is not sorted on any field, except coincidentally. find-ls-option is a variable defined in =E2=80=98find-dired.el=E2=80=99, = alas it only governs each line and not how those lines are sorted. Yes that is how find(1) works, but there should be a filter (default "| sort ...") that sorts on the last field (name). Those people who prefer jumbled order could unset it. P.S., the modeline says (Dired by name:exit) which looks weird. emacs-version "26.1" From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 05 19:52:03 2019 Received: (at control) by debbugs.gnu.org; 5 Jun 2019 23:52:03 +0000 Received: from localhost ([127.0.0.1]:48467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYfhL-0005sH-IT for submit@debbugs.gnu.org; Wed, 05 Jun 2019 19:52:03 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYfhK-0005rm-4U for control@debbugs.gnu.org; Wed, 05 Jun 2019 19:52:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYfhE-0002x5-VJ for control@debbugs.gnu.org; Wed, 05 Jun 2019 19:51:56 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1hYfhE-0000lT-Ln for control@debbugs.gnu.org; Wed, 05 Jun 2019 19:51:56 -0400 Subject: control message for bug 36110 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Wed, 05 Jun 2019 19:51:56 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) merge 29513 36110 From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 06 16:53:35 2019 Received: (at 36110) by debbugs.gnu.org; 6 Jun 2019 20:53:35 +0000 Received: from localhost ([127.0.0.1]:50659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYzOB-0000aJ-0p for submit@debbugs.gnu.org; Thu, 06 Jun 2019 16:53:35 -0400 Received: from cheetah.birch.relay.mailchannels.net ([23.83.209.34]:43030) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYzO8-0000aA-JT for 36110@debbugs.gnu.org; Thu, 06 Jun 2019 16:53:33 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 40312500A0A; Thu, 6 Jun 2019 20:53:31 +0000 (UTC) Received: from pdx1-sub0-mail-a51.g.dreamhost.com (100-96-28-110.trex.outbound.svc.cluster.local [100.96.28.110]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id A96385018B1; Thu, 6 Jun 2019 20:53:30 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a51.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, 06 Jun 2019 20:53:31 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Trouble-Tart: 12ba10cc158e7f24_1559854411056_1973843061 X-MC-Loop-Signature: 1559854411056:1120053840 X-MC-Ingress-Time: 1559854411055 Received: from pdx1-sub0-mail-a51.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a51.g.dreamhost.com (Postfix) with ESMTP id 824EC83605; Thu, 6 Jun 2019 13:53:25 -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:content-transfer-encoding; s=linkov.net; bh=LREuUy WPOsDTVhetyRLBuz6BRdI=; b=lwdKjkHv48WRzG90pFz6cMa795U+bRFQA/YYOv YSHB2SnBi9Sr6KCB6TvUWS6iSu8y01jiYJa7G85+3P3kRQns9/siXphfRBZ2sHdX XE7Ckrx1A+6lWj8M/sk21tzimzClPo4Op9WATEj79taqA5U7ZodAhEUX8fIaQN17 K/ujE= Received: from mail.jurta.org (m91-129-96-73.cust.tele2.ee [91.129.96.73]) (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-a51.g.dreamhost.com (Postfix) with ESMTPSA id 0FF888360A; Thu, 6 Jun 2019 13:53:22 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a51 From: Juri Linkov To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson Subject: Re: bug#36110: find-dired not sorted on any field nor provides a way Organization: LINKOV.NET References: <875zpjipe7.8.fsf@jidanni.org> Date: Thu, 06 Jun 2019 23:28:46 +0300 In-Reply-To: <875zpjipe7.8.fsf@jidanni.org> (=?utf-8?B?IuepjeS4ueWwvA==?= Dan Jacobson"'s message of "Thu, 06 Jun 2019 07:27:44 +0800") Message-ID: <87y32efp01.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrudeggedgudehiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhofhffjgfkfgggtgfgsehtkeertddtreejnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledrleeirdejfeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrdeliedrjeefpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepjhhiuggrnhhnihesjhhiuggrnhhnihdrohhrghenucevlhhushhtvghrufhiiigvpedt Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36110 Cc: 36110@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > find-dired (info "(emacs) Dired and Find") is great, except it is not > sorted on any field, except coincidentally. > find-ls-option is a variable defined in =E2=80=98find-dired.el=E2=80=99= , alas it only > governs each line and not how those lines are sorted. > Yes that is how find(1) works, but there should be a filter (default "| > sort ...") that sorts on the last field (name). Those people who prefer > jumbled order could unset it. 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 06 17:21:19 2019 Received: (at 36110) by debbugs.gnu.org; 6 Jun 2019 21:21:19 +0000 Received: from localhost ([127.0.0.1]:50692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYzp0-0001G0-Nu for submit@debbugs.gnu.org; Thu, 06 Jun 2019 17:21:18 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:57684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYzov-0001Fj-V9 for 36110@debbugs.gnu.org; Thu, 06 Jun 2019 17:21:14 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x56L8csC043035; Thu, 6 Jun 2019 21:21:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=cbt2DpLUdgzxjGwlAVGPCSIc2VXx5dTUscQ9vx2zrCA=; b=Cwc8P65paiA/ZZSKrNQ1jQ7uQfXz/gzfyvlKdMaH95ysSjYELwZMVAOWBaTxzY8HKnod A+GOGGyUeIPYw7Ezh3JexgZny7CTMR3/i41tdLzmtpinu2YM3ViBqLR+I1Vb7f4Y7U3h sWOF0CEQy9DunBwbTcUH8TM+pBgfUmiqfsEYdKzO1ZX8/p+KCVDLUqbq93AwKXvI+3c6 Ukr1Lhx4DG3ojJ+uxOtW6rgQdLltSMXrNPs0qCfWW+8z87L0yS9RUprWhVw2kXPZwtdL 7SNso5tVmTA+uk6/lMHbyu+RB4C6yxZHwwQnD59rWI4QwCx0+KO/E9d3zDqpf4AIUCEY ww== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 2sugstu0ut-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 06 Jun 2019 21:21:07 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x56LKeSj151277; Thu, 6 Jun 2019 21:21:07 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 2swnhb08f0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 06 Jun 2019 21:21:07 +0000 Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x56LL5o5022979; Thu, 6 Jun 2019 21:21:06 GMT MIME-Version: 1.0 Message-ID: Date: Thu, 6 Jun 2019 14:21:04 -0700 (PDT) From: Drew Adams To: Juri Linkov , =?utf-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= Subject: RE: bug#36110: find-dired not sorted on any field nor provides a way References: <875zpjipe7.8.fsf@jidanni.org> <87y32efp01.fsf@mail.linkov.net> In-Reply-To: <87y32efp01.fsf@mail.linkov.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4849.0 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9280 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=606 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906060143 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9280 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=666 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906060143 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36110 Cc: 36110@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Long ago I customized find-ls-option to this value >=20 > (setq find-ls-option '("-exec ls -ld {} \\;" . "-ld")) >=20 > 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 06 20:25:51 2019 Received: (at 36110) by debbugs.gnu.org; 7 Jun 2019 00:25:51 +0000 Received: from localhost ([127.0.0.1]:50886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hZ2hb-0007x8-5r for submit@debbugs.gnu.org; Thu, 06 Jun 2019 20:25:51 -0400 Received: from cadetblue.birch.relay.mailchannels.net ([23.83.209.28]:48592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hZ2hY-0007wz-91 for 36110@debbugs.gnu.org; Thu, 06 Jun 2019 20:25:49 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id DA7CA50124B; Fri, 7 Jun 2019 00:25:46 +0000 (UTC) Received: from pdx1-sub0-mail-a9.g.dreamhost.com (100-96-14-97.trex.outbound.svc.cluster.local [100.96.14.97]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 3FB665008AB; Fri, 7 Jun 2019 00:25:46 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a9.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); Fri, 07 Jun 2019 00:25:46 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Reign-Inform: 55811ddf07f2f558_1559867146713_1717691983 X-MC-Loop-Signature: 1559867146712:2685397773 X-MC-Ingress-Time: 1559867146712 Received: from pdx1-sub0-mail-a9.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a9.g.dreamhost.com (Postfix) with ESMTP id 0417583CBB; Thu, 6 Jun 2019 17:25:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=gRzb/wlUFODhjnq0ZpHiFt7zPqc=; b=o5o3JFjCXHxg8 MRsXcl5MFnXeoMS/MYFZJxmLsvDKo/9hpbPW8a60/SCmscpev0cJ45tGY3FKwR8j PA6Gt8yXSF6FEzCG4uEsmjkr/oMKDsWuDNlDm0YEgNcEEAiebTVh3J8ncyTeZGF0 6UsqV0V56TNqViHrreQR6DPnvvqSoE= Received: from jidanni.org (1-170-86-1.dynamic-ip.hinet.net [1.170.86.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a9.g.dreamhost.com (Postfix) with ESMTPSA id 359A183CAA; Thu, 6 Jun 2019 17:25:37 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a9 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: Drew Adams Subject: Re: bug#36110: find-dired not sorted on any field nor provides a way References: <875zpjipe7.8.fsf@jidanni.org> <87y32efp01.fsf@mail.linkov.net> Date: Fri, 07 Jun 2019 08:25:33 +0800 Message-ID: <87tvd2p7gi.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrudeghedgfeefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhffffkgggtsehttdertddttdejnecuhfhrohhmpejnnjjnucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqeenucfkphepuddrudejtddrkeeirddunecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepuddrudejtddrkeeirddupdhrvghtuhhrnhdqphgrthhhpeeprehuthhfqdekreeureehiehmpfehnfhiheehsgevkeerpecuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqpdhmrghilhhfrhhomhepjhhiuggrnhhnihesjhhiuggrnhhnihdrohhrghdpnhhrtghpthhtohepfeeiuddutdesuggvsggsuhhgshdrghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 36110 Cc: 36110@debbugs.gnu.org, Juri Linkov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) >>>>> "DA" == Drew Adams writes: DA> 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? From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 13 18:32:37 2019 Received: (at 36110) by debbugs.gnu.org; 13 Jun 2019 22:32:37 +0000 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 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 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) 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 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 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= 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 From: Juri Linkov To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson Subject: Re: bug#36110: find-dired not sorted on any field nor provides a way Organization: LINKOV.NET References: <875zpjipe7.8.fsf@jidanni.org> <87y32efp01.fsf@mail.linkov.net> <87tvd2p7gi.5.fsf@jidanni.org> Date: Fri, 14 Jun 2019 00:30:05 +0300 In-Reply-To: <87tvd2p7gi.5.fsf@jidanni.org> (=?utf-8?B?IuepjeS4ueWwvA==?= Dan Jacobson"'s message of "Fri, 07 Jun 2019 08:25:33 +0800") Message-ID: <87r27xglua.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrudeitddguddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdelrddvtdelnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtledrvddtledprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehjihgurghnnhhisehjihgurghnnhhirdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36110 Cc: 36110@debbugs.gnu.org, Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>> 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 13 19:40:45 2019 Received: (at 36110) by debbugs.gnu.org; 13 Jun 2019 23:40:45 +0000 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 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 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 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 From: Glenn Morris To: Juri Linkov Subject: Re: bug#36110: find-dired not sorted on any field nor provides a way References: <875zpjipe7.8.fsf@jidanni.org> <87y32efp01.fsf@mail.linkov.net> <87tvd2p7gi.5.fsf@jidanni.org> <87r27xglua.fsf@mail.linkov.net> 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") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36110 Cc: 36110@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 13 19:42:42 2019 Received: (at control) by debbugs.gnu.org; 13 Jun 2019 23:42:42 +0000 Received: from localhost ([127.0.0.1]:36296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbZMg-0003Qa-KM for submit@debbugs.gnu.org; Thu, 13 Jun 2019 19:42:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbZMf-0003QL-7n for control@debbugs.gnu.org; Thu, 13 Jun 2019 19:42:41 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44158) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hbZMZ-00087L-GJ for control@debbugs.gnu.org; Thu, 13 Jun 2019 19:42:35 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1hbZMZ-0005s0-0y for control@debbugs.gnu.org; Thu, 13 Jun 2019 19:42:35 -0400 Subject: control message for bug 29513 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Thu, 13 Jun 2019 19:42:35 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) fixed 29513 27.1 From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 13 20:12:25 2019 Received: (at 36110) by debbugs.gnu.org; 14 Jun 2019 00:12:25 +0000 Received: from localhost ([127.0.0.1]:36334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbZpR-0006Jk-LN for submit@debbugs.gnu.org; Thu, 13 Jun 2019 20:12:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57815) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbZpO-0006JV-5O for 36110@debbugs.gnu.org; Thu, 13 Jun 2019 20:12:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hbZpI-0006x7-MY; Thu, 13 Jun 2019 20:12:16 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1hbZpH-0007RZ-0D; Thu, 13 Jun 2019 20:12:15 -0400 From: Glenn Morris To: Juri Linkov Subject: Re: bug#36110: find-dired not sorted on any field nor provides a way References: <875zpjipe7.8.fsf@jidanni.org> <87y32efp01.fsf@mail.linkov.net> <87tvd2p7gi.5.fsf@jidanni.org> <87r27xglua.fsf@mail.linkov.net> X-Spook: Port Yukon Cloud IDEA Shots fired Recruitment SDI ANZUS X-Ran: Es.7'^Q@d1!-mTnq0mB(}@dyO\VFrx-T[-}VRh<6mu:,kj~Fmo'LPGj0Bx6;chPrdZb?-w X-Hue: magenta X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 13 Jun 2019 20:12:14 -0400 In-Reply-To: (Glenn Morris's message of "Thu, 13 Jun 2019 19:40:11 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36110 Cc: 36110@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Glenn Morris wrote: >> +@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? I verified on a directory with a large number of files that the output is not sorted. (I didn't see how it could be, given how find works.) But it does appear as if individual "chunks" are sorted, which can give the appearance of the whole output being sorted if you don't have a lot of files. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 13 22:47:45 2019 Received: (at control) by debbugs.gnu.org; 14 Jun 2019 02:47:45 +0000 Received: from localhost ([127.0.0.1]:36380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbcFk-0001mF-Oe for submit@debbugs.gnu.org; Thu, 13 Jun 2019 22:47:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56176) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbcFi-0001m0-RD for control@debbugs.gnu.org; Thu, 13 Jun 2019 22:47:43 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hbcFd-0004ZA-Hf for control@debbugs.gnu.org; Thu, 13 Jun 2019 22:47:37 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1hbcFd-00070u-9D for control@debbugs.gnu.org; Thu, 13 Jun 2019 22:47:37 -0400 Subject: control message for bug 36123 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Thu, 13 Jun 2019 22:47:37 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) forcemerge 29513 36123 From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 14 02:06:58 2019 Received: (at 36110) by debbugs.gnu.org; 14 Jun 2019 06:06:58 +0000 Received: from localhost ([127.0.0.1]:36463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbfMX-0000Pt-V0 for submit@debbugs.gnu.org; Fri, 14 Jun 2019 02:06:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbfMW-0000Pd-8B for 36110@debbugs.gnu.org; Fri, 14 Jun 2019 02:06:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hbfMQ-0000yG-Gc; Fri, 14 Jun 2019 02:06:50 -0400 Received: from [176.228.60.248] (port=2348 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hbfMP-0003nv-Rp; Fri, 14 Jun 2019 02:06:50 -0400 Date: Fri, 14 Jun 2019 09:06:52 +0300 Message-Id: <83tvcsya2r.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-reply-to: <87r27xglua.fsf@mail.linkov.net> (message from Juri Linkov on Fri, 14 Jun 2019 00:30:05 +0300) Subject: Re: bug#36110: find-dired not sorted on any field nor provides a way References: <875zpjipe7.8.fsf@jidanni.org> <87y32efp01.fsf@mail.linkov.net> <87tvd2p7gi.5.fsf@jidanni.org> <87r27xglua.fsf@mail.linkov.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36110 Cc: 36110@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Juri Linkov > Date: Fri, 14 Jun 2019 00:30:05 +0300 > Cc: 36110@debbugs.gnu.org > > > 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")} This should qualify the suggestion to using GNU Find, right? From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 14 02:18:58 2019 Received: (at 36110) by debbugs.gnu.org; 14 Jun 2019 06:18:58 +0000 Received: from localhost ([127.0.0.1]:36479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbfYA-0000jh-2N for submit@debbugs.gnu.org; Fri, 14 Jun 2019 02:18:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43973) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbfY9-0000jS-4a for 36110@debbugs.gnu.org; Fri, 14 Jun 2019 02:18:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hbfY3-000055-S2; Fri, 14 Jun 2019 02:18:51 -0400 Received: from [176.228.60.248] (port=3095 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hbfY2-0004pO-Bc; Fri, 14 Jun 2019 02:18:50 -0400 Date: Fri, 14 Jun 2019 09:18:53 +0300 Message-Id: <83sgscy9iq.fsf@gnu.org> From: Eli Zaretskii To: Glenn Morris In-reply-to: (message from Glenn Morris on Thu, 13 Jun 2019 19:40:11 -0400) Subject: Re: bug#36110: find-dired not sorted on any field nor provides a way References: <875zpjipe7.8.fsf@jidanni.org> <87y32efp01.fsf@mail.linkov.net> <87tvd2p7gi.5.fsf@jidanni.org> <87r27xglua.fsf@mail.linkov.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36110 Cc: 36110@debbugs.gnu.org, juri@linkov.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Glenn Morris > Date: Thu, 13 Jun 2019 19:40:11 -0400 > Cc: 36110@debbugs.gnu.org > > > +@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? It is assured because the GNU Find's documentation says this '+' causes the command line to be created by appending the file names, like xargs does. However, problems should be expected when the number of files becomes very large, subject to limitations of the target platform. > 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. We could document both ways. Btw, the commit which fixed bug#29513 didn't call out the change in NEWS, let alone in the manual, so we should definitely improve the docs regarding this issue anyway. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 14 02:27:02 2019 Received: (at 36110) by debbugs.gnu.org; 14 Jun 2019 06:27:02 +0000 Received: from localhost ([127.0.0.1]:36494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbffy-0000wz-E0 for submit@debbugs.gnu.org; Fri, 14 Jun 2019 02:27:02 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:44923) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbffw-0000wZ-Fl for 36110@debbugs.gnu.org; Fri, 14 Jun 2019 02:27:01 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 45Q9cf6wYbz1rHDD; Fri, 14 Jun 2019 08:26:58 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 45Q9cf5Km7z1qqkS; Fri, 14 Jun 2019 08:26:58 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id JewnUo9-fAgd; Fri, 14 Jun 2019 08:26:57 +0200 (CEST) X-Auth-Info: Qie7eoXDQdrfCjABy5/9f61BVHGdLYASEOha4gcSVtHO+Mrx0q7TRS9nraEpQfWk Received: from igel.home (ppp-46-244-172-177.dynamic.mnet-online.de [46.244.172.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 14 Jun 2019 08:26:57 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 36B5B2C1086; Fri, 14 Jun 2019 08:26:57 +0200 (CEST) From: Andreas Schwab To: Glenn Morris Subject: Re: bug#36110: find-dired not sorted on any field nor provides a way References: <875zpjipe7.8.fsf@jidanni.org> <87y32efp01.fsf@mail.linkov.net> <87tvd2p7gi.5.fsf@jidanni.org> <87r27xglua.fsf@mail.linkov.net> X-Yow: Why was I BORN? Date: Fri, 14 Jun 2019 08:26:57 +0200 In-Reply-To: (Glenn Morris's message of "Thu, 13 Jun 2019 20:12:14 -0400") Message-ID: <87a7ekfzri.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: 36110 Cc: 36110@debbugs.gnu.org, Juri Linkov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) On Jun 13 2019, Glenn Morris wrote: > Glenn Morris wrote: > >>> +@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? > > I verified on a directory with a large number of files that the output > is not sorted. (I didn't see how it could be, given how find works.) > But it does appear as if individual "chunks" are sorted, which can give > the appearance of the whole output being sorted if you don't have a lot > of files. They are sorted by ls, for each invocation of it. But it is unspecified how find will split the invocations if there are more files than fit on the command line. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 14 15:17:29 2019 Received: (at 36110) by debbugs.gnu.org; 14 Jun 2019 19:17:29 +0000 Received: from localhost ([127.0.0.1]:37816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbrhT-0006u4-9y for submit@debbugs.gnu.org; Fri, 14 Jun 2019 15:17:29 -0400 Received: from bumble.birch.relay.mailchannels.net ([23.83.209.25]:6749) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbrhQ-0006tv-Lx for 36110@debbugs.gnu.org; Fri, 14 Jun 2019 15:17:21 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id A439E8C1BBF; Fri, 14 Jun 2019 19:17:19 +0000 (UTC) Received: from pdx1-sub0-mail-a62.g.dreamhost.com (100-96-89-88.trex.outbound.svc.cluster.local [100.96.89.88]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id F34708C1BA5; Fri, 14 Jun 2019 19:17:18 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a62.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); Fri, 14 Jun 2019 19:17:19 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Whispering-Vacuous: 22c7d3d704a95d07_1560539839401_1049704764 X-MC-Loop-Signature: 1560539839401:3684035814 X-MC-Ingress-Time: 1560539839400 Received: from pdx1-sub0-mail-a62.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a62.g.dreamhost.com (Postfix) with ESMTP id 644938059F; Fri, 14 Jun 2019 12:17:14 -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=E65b5Cqaqr+M5Z5TLiU7XHtNGB0=; b= R3Egfrom5X9J+BhET6uv/ZDp0JzOmJx1iaKXmMHz+lPGbOyyDHX+U2h/J6PYB6am qzeORhivS/5AnR6YHa2ixw2YrQEHTeLkxUloLP8qgT7oWszLQK37AT5sRLWDuHxa DjXwek0So/MFbv86yRbeKjnknJNWegHRI9cYOVz9dvM= 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-a62.g.dreamhost.com (Postfix) with ESMTPSA id AE93380594; Fri, 14 Jun 2019 12:17:11 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a62 From: Juri Linkov To: Glenn Morris Subject: Re: bug#36110: find-dired not sorted on any field nor provides a way Organization: LINKOV.NET References: <875zpjipe7.8.fsf@jidanni.org> <87y32efp01.fsf@mail.linkov.net> <87tvd2p7gi.5.fsf@jidanni.org> <87r27xglua.fsf@mail.linkov.net> Date: Fri, 14 Jun 2019 22:09:10 +0300 In-Reply-To: (Glenn Morris's message of "Thu, 13 Jun 2019 20:12:14 -0400") Message-ID: <878su40ysp.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrudeiuddgudefkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhofhffjgfkfgggtgesmhdtreertdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdelrddvtdelnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtledrvddtledprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehrghhmsehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36110 Cc: 36110@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain >>> +@code{'("-exec ls -ld @{@} +" . "-ld")} >> >> Oh, I see you've changed it to the "+" form. I've changed it to the same value as in `find-exec-terminator'. So instead of documenting a command with a terminator that depends on the value of `find-exec-terminator', better would be to provide different customizable options like in the patch below. >> It looks like this does give sorted output, but I find it surprising. >> Is it assured? > > I verified on a directory with a large number of files that the output > is not sorted. (I didn't see how it could be, given how find works.) > But it does appear as if individual "chunks" are sorted, which can give > the appearance of the whole output being sorted if you don't have a lot > of files. I tried to run different commands on all files in the Emacs source tree: 1. find . -ls It produces completely unsorted output. 2. find . -exec ls -ld {} + It splits the output into sizeable chunks and sorts files inside every chunk, so the boundary between chunks is clearly visible, e.g.: -rw-rw-r-- 1 juri juri 6191 May 1 23:49 ./test/src/timefns-tests.el -rw-r--r-- 1 juri juri 13623 Jan 2 22:43 ./test/src/undo-tests.el -rw-r--r-- 1 juri juri 2915 Jan 2 22:43 ./test/src/xml-tests.el drwxr-xr-x 2 juri juri 4096 Jun 11 00:09 ./autom4te.cache -rw-rw-r-- 1 juri juri 945417 Jun 11 00:09 ./autom4te.cache/output.0 -rw-r--r-- 1 juri juri 3431 Jun 11 00:09 ./autom4te.cache/requests 3. find . -print0 | sort -z | xargs -0 -e ls -ld It splits files into chinks, but maintains the sorting order among all files. Its only drawback is misaligned chunks, e.g.: -rw-rw-r-- 1 juri juri 62707 May 21 00:04 ./info/forms.info -rw-rw-r-- 1 juri juri 1476691 Jun 11 00:16 ./info/gnus.info -rw-rw-r-- 1 juri juri 74148 May 21 00:04 ./info/htmlfontify.info -rw-rw-r-- 1 juri juri 234730 May 21 00:04 ./info/idlwave.info -rw-rw-r-- 1 juri juri 51892 May 21 00:04 ./info/ido.info -rw-rw-r-- 1 juri juri 84948 May 21 00:04 ./info/info.info Since an output with more than 5000 files (an approx amount in each chuck in this experiment) is unmanageable by human users, any of the last 2 options is sufficiently good. So here is the patch that allows the user to choose among these options: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=find-ls-option-default.patch diff --git a/lisp/find-dired.el b/lisp/find-dired.el index 2c76179da0..c563ae533a 100644 --- a/lisp/find-dired.el +++ b/lisp/find-dired.el @@ -51,19 +51,23 @@ find-exec-terminator :group 'find-dired :type 'string) +(defvar find-ls-option-default-ls + (cons "-ls" (if (eq system-type 'berkeley-unix) "-gilsb" "-dilsb"))) + +(defvar find-ls-option-default-exec + (cons (format "-exec ls -ld {} %s" find-exec-terminator) "-ld")) + +(defvar find-ls-option-default-xargs + (cons "-print0 | sort -z | xargs -0 -e ls -ld" "-ld")) + ;; find's -ls corresponds to these switches. ;; Note -b, at least GNU find quotes spaces etc. in filenames (defcustom find-ls-option (if (eq 0 (ignore-errors (process-file find-program nil nil nil null-device "-ls"))) - (cons "-ls" - (if (eq system-type 'berkeley-unix) - "-gilsb" - "-dilsb")) - (cons - (format "-exec ls -ld {} %s" find-exec-terminator) - "-ld")) + find-ls-option-default-ls + find-ls-option-default-exec) "A pair of options to produce and parse an `ls -l'-type list from `find'. This is a cons of two strings (FIND-OPTION . LS-SWITCHES). FIND-OPTION is the option (or options) passed to `find' to produce @@ -78,9 +82,20 @@ find-ls-option (\"-ls\" . \"-dilsb\") since GNU find's output has the same format as using GNU ls with the options \"-dilsb\"." - :version "24.1" ; add tests for -ls and -exec + support - :type '(cons (string :tag "Find Option") - (string :tag "Ls Switches")) + :version "27.1" ; add choice of predefined set of options + :type `(choice + (cons :tag "find -ls" + (string ,(car find-ls-option-default-ls)) + (string ,(cdr find-ls-option-default-ls))) + (cons :tag "find -exec ls -ld" + (string ,(car find-ls-option-default-exec)) + (string ,(cdr find-ls-option-default-exec))) + (cons :tag "find -print | sort | xargs" + (string ,(car find-ls-option-default-xargs)) + (string ,(cdr find-ls-option-default-xargs))) + (cons :tag "Other values" + (string :tag "Find Option") + (string :tag "Ls Switches"))) :group 'find-dired) (defcustom find-ls-subdir-switches --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 14 15:17:30 2019 Received: (at 36110) by debbugs.gnu.org; 14 Jun 2019 19:17:30 +0000 Received: from localhost ([127.0.0.1]:37820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbrhZ-0006uI-No for submit@debbugs.gnu.org; Fri, 14 Jun 2019 15:17:30 -0400 Received: from bongo.birch.relay.mailchannels.net ([23.83.209.21]:63763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbrhV-0006u6-PH for 36110@debbugs.gnu.org; Fri, 14 Jun 2019 15:17:27 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id C5E4B141890; Fri, 14 Jun 2019 19:17:24 +0000 (UTC) Received: from pdx1-sub0-mail-a62.g.dreamhost.com (100-96-85-75.trex.outbound.svc.cluster.local [100.96.85.75]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 2D00C141EC4; Fri, 14 Jun 2019 19:17:24 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a62.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); Fri, 14 Jun 2019 19:17:24 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Madly-Trade: 0b576c940966a07b_1560539844487_45106061 X-MC-Loop-Signature: 1560539844487:1754584132 X-MC-Ingress-Time: 1560539844487 Received: from pdx1-sub0-mail-a62.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a62.g.dreamhost.com (Postfix) with ESMTP id 97C7E80592; Fri, 14 Jun 2019 12:17:19 -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=H2OcjYuR0C+L2sox9os7xUEbueM=; b= A6zYdaB7uNx8eL/dH6Ow8mbCMivytfJHvvRN34khwMs0fA67w6ygaC/u+WUNykuX 5V6VSosj2PAAhF3N0R484WbaZ13AqYColgUALs6OOgz6wCXNX0uOvZER0/KB6DMU N/oKTitYtlzaHwLKwdCVtIf20ymCplAO19IZo4tU13E= 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-a62.g.dreamhost.com (Postfix) with ESMTPSA id 5591C805A4; Fri, 14 Jun 2019 12:17:17 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a62 From: Juri Linkov To: Glenn Morris Subject: Re: bug#36110: find-dired not sorted on any field nor provides a way Organization: LINKOV.NET References: <875zpjipe7.8.fsf@jidanni.org> <87y32efp01.fsf@mail.linkov.net> <87tvd2p7gi.5.fsf@jidanni.org> <87r27xglua.fsf@mail.linkov.net> Date: Fri, 14 Jun 2019 22:10:23 +0300 In-Reply-To: (Glenn Morris's message of "Thu, 13 Jun 2019 20:12:14 -0400") Message-ID: <8736kc0yqo.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrudeiuddgudefkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhofhffjgfkfgggtgesmhdtreertdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdelrddvtdelnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtledrvddtledprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehrghhmsehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgepud X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36110 Cc: 36110@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain In addition to the previous patch, it also makes sense to add similar options to grep: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=grep-find-use-xargs.patch diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index 79178c4346..67222f7862 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el @@ -511,14 +511,24 @@ xargs-program This variable's value takes effect when `grep-compute-defaults' is called.") ;;;###autoload -(defvar grep-find-use-xargs nil +(defcustom grep-find-use-xargs nil "How to invoke find and grep. If `exec', use `find -exec {} ;'. If `exec-plus' use `find -exec {} +'. If `gnu', use `find -print0' and `xargs -0'. +If `gnu-sort', use `find -print0', `sort -z' and `xargs -0'. Any other value means to use `find -print' and `xargs'. -This variable's value takes effect when `grep-compute-defaults' is called.") +This variable's value takes effect when `grep-compute-defaults' is called." + :type '(choice (const :tag "find -exec {} ;" exec) + (const :tag "find -exec {} +" exec-plus) + (const :tag "find -print0 | xargs -0" gnu) + (const :tag "find -print0 | sort -z | xargs -0'" gnu-sort) + string + (const :tag "Not Set" nil)) + :set 'grep-apply-setting + :version "27.1" + :group 'grep) ;; History of grep commands. ;;;###autoload @@ -728,6 +738,9 @@ grep-compute-defaults ;; forward slashes as directory separators. (format "%s . -type f -print0 | \"%s\" -0 %s" find-program xargs-program grep-command)) + ((eq grep-find-use-xargs 'gnu-sort) + (format "%s . -type f -print0 | sort -z | \"%s\" -0 %s" + find-program xargs-program grep-command)) ((memq grep-find-use-xargs '(exec exec-plus)) (let ((cmd0 (format "%s . -type f -exec %s" find-program grep-command)) @@ -752,6 +765,9 @@ grep-compute-defaults (cond ((eq grep-find-use-xargs 'gnu) (format "%s -type f -print0 | \"%s\" -0 %s" find-program xargs-program gcmd)) + ((eq grep-find-use-xargs 'gnu-sort) + (format "%s -type f -print0 | sort -z | \"%s\" -0 %s" + find-program xargs-program gcmd)) ((eq grep-find-use-xargs 'exec) (format "%s -type f -exec %s %s %s%s" find-program gcmd quot-braces null quot-scolon)) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 14 15:17:31 2019 Received: (at 36110) by debbugs.gnu.org; 14 Jun 2019 19:17:31 +0000 Received: from localhost ([127.0.0.1]:37822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbrhb-0006ub-2p for submit@debbugs.gnu.org; Fri, 14 Jun 2019 15:17:31 -0400 Received: from caracal.birch.relay.mailchannels.net ([23.83.209.30]:24970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbrhZ-0006uF-Bb for 36110@debbugs.gnu.org; Fri, 14 Jun 2019 15:17:29 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 74CBC2C0868; Fri, 14 Jun 2019 19:17:28 +0000 (UTC) Received: from pdx1-sub0-mail-a62.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 E93932C05D0; Fri, 14 Jun 2019 19:17:27 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a62.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); Fri, 14 Jun 2019 19:17:28 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Print-Left: 3c08d9c578715839_1560539848299_588696005 X-MC-Loop-Signature: 1560539848299:372117357 X-MC-Ingress-Time: 1560539848299 Received: from pdx1-sub0-mail-a62.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a62.g.dreamhost.com (Postfix) with ESMTP id 03B4D80592; Fri, 14 Jun 2019 12:17:25 -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=aabAKDlr1QUBeODVYsccutKhLIU=; b= je6Q2MAINtw3LIPTnxdKtnQvljTSmJarz+5D2x0ea0Lfa3U1tIlYHw49IKbkj1VD OMQhC042tS7tvDv7we9k+jnEhnkI2B6mQXf/fcqT+yk7LbyFeN3YSvLfv5yUJse7 ZxDef8y2oy+v8yTBMzmifE8YD2umJGT/JzoFpB2pFNw= 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-a62.g.dreamhost.com (Postfix) with ESMTPSA id 6C2F38059D; Fri, 14 Jun 2019 12:17:22 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a62 From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#36110: find-dired not sorted on any field nor provides a way Organization: LINKOV.NET References: <875zpjipe7.8.fsf@jidanni.org> <87y32efp01.fsf@mail.linkov.net> <87tvd2p7gi.5.fsf@jidanni.org> <87r27xglua.fsf@mail.linkov.net> <83sgscy9iq.fsf@gnu.org> Date: Fri, 14 Jun 2019 22:12:07 +0300 In-Reply-To: <83sgscy9iq.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 14 Jun 2019 09:18:53 +0300") Message-ID: <87sgscyoag.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrudeiuddgudefkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtledrvddtleenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdelrddvtdelpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepvghlihiisehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36110 Cc: 36110@debbugs.gnu.org, Glenn Morris X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> 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. > > We could document both ways. > > Btw, the commit which fixed bug#29513 didn't call out the change in > NEWS, let alone in the manual, so we should definitely improve the > docs regarding this issue anyway. Also I see no way to disable its default value with something like: diff --git a/lisp/find-dired.el b/lisp/find-dired.el index 2c76179da0..c563ae533a 100644 --- a/lisp/find-dired.el +++ b/lisp/find-dired.el @@ -123,7 +138,10 @@ find-dired-refine-function output of `find' (one file per line) when this function is called." :version "27.1" :group 'find-dired - :type 'function) + :type '(choice (const :tag "Sort file names lexicographically" + find-dired-sort-by-filename) + (function :tag "Refining function") + (const :tag "No refining" nil))) (defvar find-args nil "Last arguments given to `find' by \\[find-dired].") From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 15 19:18:01 2019 Received: (at 36110) by debbugs.gnu.org; 15 Jun 2019 23:18:02 +0000 Received: from localhost ([127.0.0.1]:39395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcHvt-0006cI-DU for submit@debbugs.gnu.org; Sat, 15 Jun 2019 19:18:01 -0400 Received: from antelope.elm.relay.mailchannels.net ([23.83.212.4]:49907) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcHvr-0006c8-G8 for 36110@debbugs.gnu.org; Sat, 15 Jun 2019 19:18:00 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id C5CE4500700; Sat, 15 Jun 2019 23:17:57 +0000 (UTC) Received: from pdx1-sub0-mail-a24.g.dreamhost.com (100-96-38-146.trex.outbound.svc.cluster.local [100.96.38.146]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 2B204500E73; Sat, 15 Jun 2019 23:17:57 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a24.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); Sat, 15 Jun 2019 23:17:57 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Bitter-Society: 39c0ec355c3926dd_1560640677539_2557350249 X-MC-Loop-Signature: 1560640677539:1924030307 X-MC-Ingress-Time: 1560640677539 Received: from pdx1-sub0-mail-a24.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a24.g.dreamhost.com (Postfix) with ESMTP id 3FE6181FE7; Sat, 15 Jun 2019 16:17:49 -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=s6CtuLVVgY3icbEVRRx8wNp49fE=; b= Arq82LrxPYyj4sJ0uusy2HpXqCG4Q1XKWSoyTj3/ylbTCjmc40It4CkSoEW13Mwq r+owmThHxeJ6uvnfWNrMbcX3fxgfDJifmt95fUh9B+2cESK2NPLku+YsD8UZ2UKI A8t9jnhsH199w81z3Mjtoi38o1DsndU9yI4aj8VTYGU= 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-a24.g.dreamhost.com (Postfix) with ESMTPSA id 0F518826C7; Sat, 15 Jun 2019 16:17:43 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a24 From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#36110: find-dired not sorted on any field nor provides a way Organization: LINKOV.NET References: <875zpjipe7.8.fsf@jidanni.org> <87y32efp01.fsf@mail.linkov.net> <87tvd2p7gi.5.fsf@jidanni.org> <87r27xglua.fsf@mail.linkov.net> <83tvcsya2r.fsf@gnu.org> Date: Sun, 16 Jun 2019 01:36:45 +0300 In-Reply-To: <83tvcsya2r.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 14 Jun 2019 09:06:52 +0300") Message-ID: <8736kala7u.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrudeigedgvdefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdelrddvtdelnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtledrvddtledprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegvlhhiiiesghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36110 Cc: 36110@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> 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")} > > This should qualify the suggestion to using GNU Find, right? grep-find-use-xargs defines such a command as `exec', whereas GNU Find is defined as a combination of `find -print0' and `xargs -0'. From docstring of grep-find-use-xargs: If `exec', use `find -exec {} ;'. If `exec-plus' use `find -exec {} +'. If `gnu', use `find -print0' and `xargs -0'. From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 15 22:39:08 2019 Received: (at 36110) by debbugs.gnu.org; 16 Jun 2019 02:39:08 +0000 Received: from localhost ([127.0.0.1]:39497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcL4W-0006RP-20 for submit@debbugs.gnu.org; Sat, 15 Jun 2019 22:39:08 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55449) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcL4U-0006Qu-IM for 36110@debbugs.gnu.org; Sat, 15 Jun 2019 22:39:06 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49547) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hcL4O-0005Ms-DQ; Sat, 15 Jun 2019 22:39:01 -0400 Received: from [176.228.60.248] (port=3300 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hcL4L-0005qC-R5; Sat, 15 Jun 2019 22:39:00 -0400 Date: Sun, 16 Jun 2019 05:39:05 +0300 Message-Id: <83muiiuud2.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-reply-to: <8736kala7u.fsf@mail.linkov.net> (message from Juri Linkov on Sun, 16 Jun 2019 01:36:45 +0300) Subject: Re: bug#36110: find-dired not sorted on any field nor provides a way References: <875zpjipe7.8.fsf@jidanni.org> <87y32efp01.fsf@mail.linkov.net> <87tvd2p7gi.5.fsf@jidanni.org> <87r27xglua.fsf@mail.linkov.net> <83tvcsya2r.fsf@gnu.org> <8736kala7u.fsf@mail.linkov.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36110 Cc: 36110@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Juri Linkov > Cc: jidanni@jidanni.org, 36110@debbugs.gnu.org > Date: Sun, 16 Jun 2019 01:36:45 +0300 > > >> 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")} > > > > This should qualify the suggestion to using GNU Find, right? > > grep-find-use-xargs defines such a command as `exec', > whereas GNU Find is defined as a combination of `find -print0' > and `xargs -0'. From docstring of grep-find-use-xargs: > > If `exec', use `find -exec {} ;'. > If `exec-plus' use `find -exec {} +'. > If `gnu', use `find -print0' and `xargs -0'. I meant the "+" part, I think it's GNU-specific? From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 16 04:37:58 2019 Received: (at 36110) by debbugs.gnu.org; 16 Jun 2019 08:37:58 +0000 Received: from localhost ([127.0.0.1]:39677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcQfl-0007hm-Ru for submit@debbugs.gnu.org; Sun, 16 Jun 2019 04:37:58 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:42244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcQfj-0007hZ-41 for 36110@debbugs.gnu.org; Sun, 16 Jun 2019 04:37:56 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 45RSQn4xJCz1r8jx; Sun, 16 Jun 2019 10:37:53 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 45RSQn3FPDz1qql1; Sun, 16 Jun 2019 10:37:53 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 1qCfzdbW1gLm; Sun, 16 Jun 2019 10:37:52 +0200 (CEST) X-Auth-Info: T9WH0YFsKSN7WnK3TiwR9aSyY6jyvNoLNuLdzhWNoe4jMTAVNaOI8StVwq3CBEjB Received: from igel.home (ppp-46-244-189-62.dynamic.mnet-online.de [46.244.189.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sun, 16 Jun 2019 10:37:52 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 3E1592C117A; Sun, 16 Jun 2019 10:37:50 +0200 (CEST) From: Andreas Schwab To: Eli Zaretskii Subject: Re: bug#36110: find-dired not sorted on any field nor provides a way References: <875zpjipe7.8.fsf@jidanni.org> <87y32efp01.fsf@mail.linkov.net> <87tvd2p7gi.5.fsf@jidanni.org> <87r27xglua.fsf@mail.linkov.net> <83tvcsya2r.fsf@gnu.org> <8736kala7u.fsf@mail.linkov.net> <83muiiuud2.fsf@gnu.org> X-Yow: CHUBBY CHECKER just had a CHICKEN SANDWICH in downtown DULUTH! Date: Sun, 16 Jun 2019 10:37:50 +0200 In-Reply-To: <83muiiuud2.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 16 Jun 2019 05:39:05 +0300") Message-ID: <87pnne9b8h.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: 36110 Cc: 36110@debbugs.gnu.org, jidanni@jidanni.org, Juri Linkov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) On Jun 16 2019, Eli Zaretskii wrote: >> grep-find-use-xargs defines such a command as `exec', >> whereas GNU Find is defined as a combination of `find -print0' >> and `xargs -0'. From docstring of grep-find-use-xargs: >> >> If `exec', use `find -exec {} ;'. >> If `exec-plus' use `find -exec {} +'. >> If `gnu', use `find -print0' and `xargs -0'. > > I meant the "+" part, I think it's GNU-specific? exec-plus is POSIX (originating from SVR4). Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 16 10:02:19 2019 Received: (at 36110) by debbugs.gnu.org; 16 Jun 2019 14:02:19 +0000 Received: from localhost ([127.0.0.1]:41197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcVjd-0008C2-J3 for submit@debbugs.gnu.org; Sun, 16 Jun 2019 10:02:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50636) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcVjb-0008Bo-6r for 36110@debbugs.gnu.org; Sun, 16 Jun 2019 10:02:15 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hcVjR-0004Fz-MH; Sun, 16 Jun 2019 10:02:05 -0400 Received: from [176.228.60.248] (port=1118 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hcVjR-0004mn-2c; Sun, 16 Jun 2019 10:02:05 -0400 Date: Sun, 16 Jun 2019 17:02:13 +0300 Message-Id: <83lfy1vday.fsf@gnu.org> From: Eli Zaretskii To: Andreas Schwab In-reply-to: <87pnne9b8h.fsf@igel.home> (message from Andreas Schwab on Sun, 16 Jun 2019 10:37:50 +0200) Subject: Re: bug#36110: find-dired not sorted on any field nor provides a way References: <875zpjipe7.8.fsf@jidanni.org> <87y32efp01.fsf@mail.linkov.net> <87tvd2p7gi.5.fsf@jidanni.org> <87r27xglua.fsf@mail.linkov.net> <83tvcsya2r.fsf@gnu.org> <8736kala7u.fsf@mail.linkov.net> <83muiiuud2.fsf@gnu.org> <87pnne9b8h.fsf@igel.home> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36110 Cc: 36110@debbugs.gnu.org, jidanni@jidanni.org, juri@linkov.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Andreas Schwab > Cc: Juri Linkov , 36110@debbugs.gnu.org, jidanni@jidanni.org > Date: Sun, 16 Jun 2019 10:37:50 +0200 > > On Jun 16 2019, Eli Zaretskii wrote: > > > I meant the "+" part, I think it's GNU-specific? > > exec-plus is POSIX (originating from SVR4). Thanks. Then there's no need to qualify anything. From unknown Sat Jun 21 05:03:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 15 Jul 2019 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator