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: empty-directory predicate, native implementation Date: Mon, 19 Oct 2020 04:15:51 +0200 Message-ID: References: <47c8d9e6-ecfb-46bc-bafc-b1587445f015@default> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34594"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Eli Zaretskii , Michael Albinus , emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 19 04:17:01 2020 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 1kUKjN-0008tW-IV for ged-emacs-devel@m.gmane-mx.org; Mon, 19 Oct 2020 04:17:01 +0200 Original-Received: from localhost ([::1]:59618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUKjM-0007X0-JL for ged-emacs-devel@m.gmane-mx.org; Sun, 18 Oct 2020 22:17:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUKiS-00076X-O7 for emacs-devel@gnu.org; Sun, 18 Oct 2020 22:16:05 -0400 Original-Received: from mail-oln040092071095.outbound.protection.outlook.com ([40.92.71.95]:13366 helo=EUR03-DB5-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 1kUKiN-00043H-O0; Sun, 18 Oct 2020 22:16:03 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NBAhwNPDQGs7dqf3PY0UV6Fb8BewwduB/AwPKmacsuz3d45ewOS3g8onxwnunkTNkuUN/EBQqieQ0BivWpUrU+O5OoVsrm1pWKu8eU6JMNyexlwgEJHPiSTR2/aXV9aZoLW6Ffk43cddHCkbPiyGf4+7k8IaRlKWLMisuattVvQI2pDZ5904TWmuOhbnoFWPYIvEdSjZKQkLWJCGoYqu1kI85EjAtKZqr134BCVXiLV0+bqdhVZLpFbWP2xgMHYPqt7xNemLuVwn/xkKz8dRqKQ45uUu95UniT70Uyf1NZwrQr9VHkr3LLJ4VKaVShQiSB0S9CySDn2zazpuEZzOXw== 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=0JSK6d/ja97nLQK8Q+fE6cYqAXdKcDEEVmRQm5jGMxQ=; b=Ua3k7xiDEYRBXgb2NYv+SuexDMJn6dt97w3QNU/3X4WcJdZIGdP9ym/wTIg01ql4Fpe4mLkdNgfGdmn4lPpJi7iVUnAdOgcPoHIrRuzJzZEI94Jnf0DhpLJf3HuKIpVtNy9nOK7e/Swwxa6FCGEedD4p/IyfjP6SGOjFrLrB3+3YkfZLfnYrKrg3okLq9GUdu3bjyXuKGSGwa0CZLK09GohoaP1/xwhTlzB5q2paErXZ8NTY7jfB1z737qeuDzx0taAqM/JXouHePD04i6SgN0+k51b12PBLTmmgthrJ7ODyqSIh4Q9ucdUuRu4tn6k2I0oBWgFACbwwMY42KiiQsQ== 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=0JSK6d/ja97nLQK8Q+fE6cYqAXdKcDEEVmRQm5jGMxQ=; b=WwUWCHF/a62h1Y9K6aBFafK3UwBkOdq9ZLguCs6FLSRHxqwMeeOwjeCX9LzDsX5Rx6Lp789IphO+icvBnBL2abW3Jum7yY/0JNkQjdrGeHloMU3pxea2HO7DfUsNdEhciOeu7XG1RROY4wziLC8mlD2YvhIJhufXN8FYo/0oGH0TOajqYDmlwlxBO+NbwM5st6edzt5xpu47Y4vWMwNZBhGr0PFJuC7XW0vTLMN2JYjcMVGXV0Yr+/9sO4RGKc656Ny3uIXmjdOJ9PXvwLIjLn6PFsWnPiDLyUOFQs7JjN37Q8bKeTc5G7ZmkGv5F3bTQfANS9I9BXWB4T3VerMSDA== Original-Received: from VE1EUR03FT059.eop-EUR03.prod.protection.outlook.com (2a01:111:e400:7e09::4f) by VE1EUR03HT183.eop-EUR03.prod.protection.outlook.com (2a01:111:e400:7e09::314) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.23; Mon, 19 Oct 2020 02:15:53 +0000 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:7e09::48) by VE1EUR03FT059.mail.protection.outlook.com (2a01:111:e400:7e09::316) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.21 via Frontend Transport; Mon, 19 Oct 2020 02:15:53 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:B47650815A1C4E59D976ECCE8608273BF8FAA195CDC014B0136F1FFFFCEEF043; UpperCasedChecksum:20AE6A51B9441159D75DB404C2D93B4CF44D55ED50404BF6ECA74A3AB0818279; SizeAsReceived:7633; Count:46 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com ([fe80::187b:196a:cb2d:adf1]) by VI1PR06MB4526.eurprd06.prod.outlook.com ([fe80::187b:196a:cb2d:adf1%5]) with mapi id 15.20.3477.028; Mon, 19 Oct 2020 02:15:52 +0000 In-Reply-To: <47c8d9e6-ecfb-46bc-bafc-b1587445f015@default> (Drew Adams's message of "Sun, 18 Oct 2020 17:37:39 -0700 (PDT)") X-TMN: [pahOaoAWiudYMvBaz2qOXCcZYp9zn4HK] X-ClientProxiedBy: AM6P195CA0011.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:81::24) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <87lfg3q7u0.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (90.230.29.56) by AM6P195CA0011.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:81::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.21 via Frontend Transport; Mon, 19 Oct 2020 02:15:52 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 626ea287-1927-4ac8-7888-08d873d4e75c X-MS-TrafficTypeDiagnostic: VE1EUR03HT183: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qJtTjQak5D26McmA0Prd/ks0sW32Y9gKHQdIE1LZSOMU9bxXftwNnLgZ1/q8INlTAI2iqoS67uh5hCtIFD1I+s6iMwRR7CaAcSmS76goo81GPh4tBH5SyMTgoPwJxGXKdaPHDYucTtGjsc57z3Zpvl8XJ+Ql0KFxDW4BiQxA9Rh2s13hjMCouYvhSHomBjh840vCRbttiRzptrG+VtJ0cA== X-MS-Exchange-AntiSpam-MessageData: xRSx+9qvUHX5BQekWN5H/E/Wj5MnTeJGY9h9toC8U94gScB7UH+ywxzrGXN2kNK7f5O6SDSt33BEtXAGMpP1V2zdpYPuPhHXihJPfRt3SOg3PNd/OWPBq5qvHp47si0Jz/0Rpf59Tdzz/BMwvqOMBA== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 626ea287-1927-4ac8-7888-08d873d4e75c X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2020 02:15:52.8940 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT059.eop-EUR03.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: VE1EUR03HT183 Received-SPF: pass client-ip=40.92.71.95; envelope-from=arthur.miller@live.com; helo=EUR03-DB5-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/18 22:15:53 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] 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:258075 Archived-At: Drew Adams writes: >> I guess for purpose of tests and manual where I >> have used your regex, we can live with built-in one. > > Yes, most likely. > >> Please ignore my other mail; I sent it before I red the rest of resonses. > > No problem. > >> I am obviously to new here, so before I suggest something again :-), can >> I ask if you have already considered having a predicate as a filter >> function instead of regex? Is it considered as too much work to >> implement? > > Is that a question for me? In general; for you and anyone who has been developing this functionality and have time and will to answer. > If so, a predicate where, in what context? > There are also Dired+ and Dired functions that accept > a predicate as argument. `diredp-get-files' > `diredp-get-subdirs', and `diredp-files-within', for > example. > > What is it that you'd like to do/suggest? I don't know for sure; so I guess I'll play with it when I have time and sent in suggestion if I make something. :-). Sorry for the noise.