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: Wed, 14 Oct 2020 15:53:23 +0200 Message-ID: References: <87r1q2mu4t.fsf@gmx.de> <87d01ml0zd.fsf@gmx.de> <87362ikm15.fsf@gmx.de> <87lfg9jhbt.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32703"; 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: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 14 16:09:59 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 1kShTb-0008Oe-7O for ged-emacs-devel@m.gmane-mx.org; Wed, 14 Oct 2020 16:09:59 +0200 Original-Received: from localhost ([::1]:57970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kShTa-0003Dh-9B for ged-emacs-devel@m.gmane-mx.org; Wed, 14 Oct 2020 10:09:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kShSE-00022o-Mt for emacs-devel@gnu.org; Wed, 14 Oct 2020 10:08:34 -0400 Original-Received: from mail-am6eur05olkn2063.outbound.protection.outlook.com ([40.92.91.63]:63713 helo=EUR05-AM6-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 1kShSB-0002b1-Oc for emacs-devel@gnu.org; Wed, 14 Oct 2020 10:08:34 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MVBZaVA1XRRCQUUK+jlGO+jFL4NquG4TdjkHp9muIffJjxIJNcBMP5kQb8or4Mj5SXhMJrkIwiQW3R0AFRYrfmn6jlKSo0NnkTFnemNOubR2TeHT+rgIbczMbN8AM4I4yJ9Fxfm8N+Ze7Co40IuTExnht+e0IohM2Hz4Sx+pOJ5HGQf/4boUaeU9A91xzkd8IKqSrjRn7IN26xoRRhs5FCopzTD20t4iAijlSlEA9N67jCzDg/qTai+edx2yHweMlebu72Lw/d5HUhDLIY8IvgUZzrs9/o/ZivtI9l7+ayM2xmw8ZERqoDvwRE6LQzxdwvL7pxVVEOpogxnig88y0A== 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=BjBpCsSUF4rWQrVVIR/GPttOx0wg41oMIh7uti+jM8A=; b=UzwB9o9p2veRU/FgrRGjNaaUEj/YydHtKdwUu0IH4wgln/OTrqvMIXflUM8aMFeVEvI3KWJ8G4hrMCnHiQ+t6iIQ+6LlwSbWnAHbSFGqRAY9Pq8p53/hBrgwoN3AkoRFo84Zidfch94zEaB7ymY5wxM0E/0oy10hFLqfyxo59HLlq6Kn9sxrZPaglO4o//NAD/S3Qx/zGDHYZxdWMrHSkJoUlQD4bsdIvKmtp98aqOAphvsdqLSFSd3QFY7Ixv1Kct4B13jgdAhWCUcLEtwde4ucQeQnrk0Oz8N9h/RpZNYEVl362YdMqlwhP2bVDik171UKfZUOmxwc1pn58YZx7g== 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=BjBpCsSUF4rWQrVVIR/GPttOx0wg41oMIh7uti+jM8A=; b=XFqf/wq/ImsJLMG2/qI/AjNdGNmMhIhNK/gKyXh9mhdkCM5sIuNQC6uI625eBd+jBX1N/Jjahd//B91sygL8M3HBeX2XfWgD8r7EiwLKfuvGkY4DWwo3MMWByPPIQpIvcaCEvC8gFZCw9c9dlNWw8fLw+alc2gxfEKXkiJLglpGKjUvXqESRzSbDuhI9+aCXrQWTQ/i0Y2Q+G//dlf+UU8hEU3eb6KgtwHqK5+4Rw//9rhJiWnr485yyV19tOSZzGHbdrPbVD5vJdbSdiOmgjEF2UTT4/sUKjwBmhl2vnW0P2abs6jfAJGQ2uaR0UDOo12vWNfr5toAQYTQ9Hj6REw== Original-Received: from VI1EUR05FT005.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc12::51) by VI1EUR05HT209.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc12::215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.23; Wed, 14 Oct 2020 13:53:25 +0000 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:fc12::52) by VI1EUR05FT005.mail.protection.outlook.com (2a01:111:e400:fc12::124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.21 via Frontend Transport; Wed, 14 Oct 2020 13:53:25 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:F0AD8854D6E6573ECA4C094A95078D8855023A67ED0A390C746B142FA721CEDA; UpperCasedChecksum:3BEDC186189C3EA1918601BB04011F9295D71ABC3B0423C234CB10FE61782E74; SizeAsReceived:7799; Count:46 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com ([fe80::b547:51cd:16c5:4487]) by VI1PR06MB4526.eurprd06.prod.outlook.com ([fe80::b547:51cd:16c5:4487%7]) with mapi id 15.20.3455.031; Wed, 14 Oct 2020 13:53:25 +0000 In-Reply-To: <87lfg9jhbt.fsf@gmx.de> (Michael Albinus's message of "Wed, 14 Oct 2020 11:19:02 +0200") X-TMN: [QW3SMUCiOPhQAUJzx3G3hJ+L/kZTX6Qq] X-ClientProxiedBy: AM6PR0502CA0040.eurprd05.prod.outlook.com (2603:10a6:20b:56::17) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <87v9fcykvg.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (90.230.29.56) by AM6PR0502CA0040.eurprd05.prod.outlook.com (2603:10a6:20b:56::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.20 via Frontend Transport; Wed, 14 Oct 2020 13:53:24 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 85bad5cd-0b7c-446d-7058-08d87048855f X-MS-TrafficTypeDiagnostic: VI1EUR05HT209: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fm2Um4YQPPWQF4Wq9dG6IybIMjVR5oyXJGLnqguCnxAypqZBx2Czzgt80LORkwBZkM18bd5AhIief5h6qINImLMGO6J6L6zVh0bjxakdb0PU2z9RkFXV/TcFY6ThFgog6ixH1yVM/q6UBxJvPgU8987EJWHG0NDl3zVCsKCdkMcWCMXFs+w3Iu2zgPJaZxv5vef/zkTA2I0bMCeGHr/5FA== X-MS-Exchange-AntiSpam-MessageData: 5wKpiRPwqw4MvS8YbRyjz70quQLum3jOgP3OS9mY1HTNFYVXHDwWJZTtq/rEhUJW+kkgso32LH/gETrvcOYirdZUKwTHc0MJqHN2HNToSq1eYqHLBXDlDnYedrQeRGVOuWDEj3hA+yL/r6/Jldt0LQ== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 85bad5cd-0b7c-446d-7058-08d87048855f X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2020 13:53:25.8041 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VI1EUR05FT005.eop-eur05.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: VI1EUR05HT209 Received-SPF: pass client-ip=40.92.91.63; envelope-from=arthur.miller@live.com; helo=EUR05-AM6-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/14 10:08:29 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:257632 Archived-At: Michael Albinus writes: > Arthur Miller writes: > > Hi Arthur, > >> Thanks for the pointer. I was looking at tramp.el, but I it is ~6k loc >> :-). I am not sure I understand what I would need to do to implement >> for this; would like to learn though. Can you maybe point me to some >> function which I can take a look that would be similar to what I tried >> here use-case. > > Follow directory-files. tramp-handle-directory-files is the Tramp > implementation of that function. > > Best regards, Michael. Of course; I am so stupid sometimes :-) I was too fast, wasn't thinking, thanks!