From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Re: Proposal: ls-lisp.el handle --group-directories-first flag Date: Sat, 24 Jul 2021 13:54:49 +0200 Message-ID: References: <8335se5v40.fsf@gnu.org> <83y2a64bla.fsf@gnu.org> <83czrh40hf.fsf@gnu.org> <83o8asynga.fsf@gnu.org> <83k0lgymsd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10447"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 24 13:55:58 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m7GG6-0002WA-2j for ged-emacs-devel@m.gmane-mx.org; Sat, 24 Jul 2021 13:55:58 +0200 Original-Received: from localhost ([::1]:38382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7GG5-00044s-4A for ged-emacs-devel@m.gmane-mx.org; Sat, 24 Jul 2021 07:55:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7GF6-0002tT-5T for emacs-devel@gnu.org; Sat, 24 Jul 2021 07:54:56 -0400 Original-Received: from mail-oln040092074050.outbound.protection.outlook.com ([40.92.74.50]:29166 helo=EUR04-DB3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7GF3-0005Uv-9L; Sat, 24 Jul 2021 07:54:55 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aUFt/K5bxfhJSD2eDpdSxd5RnY56YpdgqjpcmkEW6VGmuhrTOe9JTgCtv+8JJGA1uRHL5mbICanT+JurMF3IQJgEh25/cZfCaXkuZUY5OHyWwpfVeiClvcQQciMO99sCR0n14YgZeMwYGf3R3lEkiC3IUk5Dun4mEHfQTf1rPPKd4BdltTatpgQhc7tbTgSpV5gFMtjC19HpbSeTGxcNWRfvlVDEmani97dOqaBfUwNNKh1iAf+4YKjtYubFFtxObLDpqALJIxNdC06BafNCjb/1hAGB1BQcFAuMsaFUFHFnAuXiCjt1JVPnSMSo5oMUxfV0JLQX5m7m+0wwUeJQOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=R/2hxdaz1EH71GMBj6h9sSRk3ewYNEkux/gXKJUk7fI=; b=PFayd+qrODDfR3ULoWlDpK/SMfiptkeCH9qOmSZgnaDsc4KIS4v3ex1rAv7j97YM2UwLo8ckSW3ZLMNtcLutwNbdqEm64WsQ3XJ6E27jKR3KTOICk7ZrgXpYOwBDxL/XMfTn3vbRd1zEIvB0TxMlpsMVQs/IZzB4u7pEDRYgkkeMy5DcdVoLHJJmhX5fePMTvbSWDYRy/8L5TPfqLxQYI/l06hGCiGSKLksJ+RsNHNOoHhGPp7C0YYfNQGPzR83rRtkbJiQrYxvaQmyN2i67ZBbuS7Ecj/yv4NnyieGUOvnxmkH/8dqkjjP28bIBPkknRhRehZHUybiydj0Fcl2abQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=R/2hxdaz1EH71GMBj6h9sSRk3ewYNEkux/gXKJUk7fI=; b=QNM2oHrdUc0M+UlU+I16UdVCdZQIIhgYr11T3YK54g8QwzChCl+5BliiQPpUatAwcqPLErq2JaI01FUbY2ecGse/tMUb1X8F8QIIlJrrUAB+6kMgd9K4Mtrmbnyo27pC1aBvKrJHv0qW9oSLhjCQ1Vd8FH0z/5OFNz99I0Sd4Hw1Yv7dAVKHneabRwb+MbeFMmky1C6pN+HQXEV+vPSOCPLAqKT+CrkTjIH1B1DFqCplJ6MYOuGOEMuNSEln8dayNk+3vGNXmW+WZh566mgMs9tcyJmiu+AXDEWPV5HzwAgLx8uFeRlsrt/AKm021OzsbXy43zKkErBIHVeSVxk3xQ== Original-Received: from DB3EUR04FT025.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0c::42) by DB3EUR04HT105.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0c::441) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.24; Sat, 24 Jul 2021 11:54:50 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:7e0c::4c) by DB3EUR04FT025.mail.protection.outlook.com (2a01:111:e400:7e0c::144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.24 via Frontend Transport; Sat, 24 Jul 2021 11:54:50 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:F6D84EF3272ECEC4A6A2476AA53397C30576717952F263D517B1A9ACBD8F7834; UpperCasedChecksum:FD566252C01C26847A2B4EE867AC1CAC96001078237BBEB3A67AAC44CF0C8FD1; SizeAsReceived:7826; Count:46 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::e47b:760e:fa35:f28b]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::e47b:760e:fa35:f28b%7]) with mapi id 15.20.4352.029; Sat, 24 Jul 2021 11:54:50 +0000 In-Reply-To: <83k0lgymsd.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 24 Jul 2021 14:27:30 +0300") X-TMN: [7atWE48adcjZihxLVlp+0N4QHC3JGRJi] X-ClientProxiedBy: AM6PR10CA0004.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:89::17) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87a6mcsz92.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by AM6PR10CA0004.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:89::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.25 via Frontend Transport; Sat, 24 Jul 2021 11:54:49 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: d7c52d29-e380-49e9-4a28-08d94e99d755 X-MS-TrafficTypeDiagnostic: DB3EUR04HT105: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6tdciRuV25dDDTUSKMgjq6nlFshG7NBBiLXylnGgM59CcybXEw3lKoQJfDgANpb+9bR9cn5aR7pznMb7+OoFyDM8NdZLD5d+OLoCBDT0jHtxDNHHuhqSlvi5xbn7C/GIhilrCjoxD+Twv3x5CNVvObiMbg/uyb9wzNb/8LTFYTCdcVtu1P9V/2w3XfMMhsU2kh0rY+d61ePbyOZJ2rqbAyEj7ZySlq/P8sf5fbq4Oe8Gzx4rgaB9rtOydlXlqCMlariTKhz2Lp5UX9wc4teiE7x+KxSdRQ9bTT8+5ZGDqTQy5hdcebIy8tNYS8p76C3mcDorT9SskG8UITVlMoMzZsZ4I6NuKAXg5B388qVZLOl2O9E5/HXSDTbwQ+NwaF+Mds5+WRZnN7biAAh764i0uL3oemZpqZMt4YYu291k1wlPSKhrm7ZS4qts0kYLsZi8 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: S6gkUwfRJbnHNgk3hJruKa2DU4OszLbEu4sEZAmCqIS5ykDbWdW4s9ajKAK8IqqjFoExZob+9MKD20E+NkoekrHD2OtrqUKNZsHmRD1NS1g7GGEqAW1Kw7Pj+B941Ve7ufq1v23U7ootouZGZS4jAg== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: d7c52d29-e380-49e9-4a28-08d94e99d755 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2021 11:54:50.2346 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DB3EUR04FT025.eop-eur04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3EUR04HT105 Received-SPF: pass client-ip=40.92.74.50; envelope-from=arthur.miller@live.com; helo=EUR04-DB3-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:271537 Archived-At: Eli Zaretskii writes: >> Date: Sat, 24 Jul 2021 14:13:09 +0300 >> From: Eli Zaretskii >> Cc: emacs-devel@gnu.org >> >> > A think to note is that -U will be ignored if --group-directories-first >> > is passed (so does gls). >> >> Hmm... bother: the need to add -U could be a problem, because users >> don't necessarily want the list to come out unsorted. >> >> If adding -U is to fix the order of the directories, then how about >> using nreverse on the list of directories instead? True, I don't know why I didn't thought of it :-). > Btw, in my testing, with ls-lisp-dirs-first bound non-nil, the > directories are shown in their correct alphabetically sorted order. > So I'm unsure what problems you saw and in which scenario. Can you > tell more about this issue? Ok, I'll test more. > (Sorry about my slow responses, and thanks for working on this.) No rush, it's not like this was something people complain about, and I have seen all the tree-sitter work going on. Have you seen the other patch, where flags are sanitized, that would make ls-lisp accept all the flags as gnu ls, but ignore those it does not undrstand. Provided that gnu ls does not use same flags as ls-lisp with different meaning.