From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: empty-directory predicate, native implementation Date: Tue, 13 Oct 2020 10:01:54 +0200 Message-ID: <87r1q2mu4t.fsf@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24626"; 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: Arthur Miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 13 10:06:11 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 1kSFJy-0006HO-AE for ged-emacs-devel@m.gmane-mx.org; Tue, 13 Oct 2020 10:06:10 +0200 Original-Received: from localhost ([::1]:42368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSFJx-0007NT-5U for ged-emacs-devel@m.gmane-mx.org; Tue, 13 Oct 2020 04:06:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSFG3-0006nB-5M for emacs-devel@gnu.org; Tue, 13 Oct 2020 04:02:07 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:39643) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSFFy-0000Od-92 for emacs-devel@gnu.org; Tue, 13 Oct 2020 04:02:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1602576115; bh=kWulBSAUIWyPWhEcYT1y2Nco0L962beLODgysvK3jdo=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=LzePZGBiyHHHtZQkS9LUJK5UjUILTRKLyUlq1zZNmJ5u/R+015ripp6U03pRGiMws MVsLWlklk+2BOn96uakUWOY9Xeavqx8q8ade6TbVqBZ7DyJ1ywHYY8P87KtATv4MmN d7QpnesDTfjCIgo5B7ZdFym3GWFdVpGKKM9/27x4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([212.86.61.126]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N7iCg-1kOThZ0vnm-014o3u; Tue, 13 Oct 2020 10:01:55 +0200 In-Reply-To: (Arthur Miller's message of "Tue, 13 Oct 2020 04:22:36 +0200") X-Provags-ID: V03:K1:4CLWCJbHH9DH7IykB14YmPHAfC0sXdyB6nQFXQYvU67DaC4+8lY zvjEOGHJNNfUndRMoqOLb17mCRffW+tIIs5o8zORVMDpMzV+0KUtNqYEXUTdvZ85tJFAxKd 1Sc4S921yyrfJx7Io44xEbsSrsbBRvPraGu7Fye/zqLDqup3Rhb55VF00jHS26qOB0VysxP 6huOJwmYd6EFEI3iHrrWw== X-UI-Out-Filterresults: notjunk:1;V03:K0:eWP69NJaUN4=:GZ/7iyxXvWNGV0sY0tfTwm wWkfJeKHA4UfdZs7fR+yYpOhWtwEm30TasA6h+BO7moMfV96pHbBdRpVuhEwzOl4JwTgmZvB0 /2myRQtZY1jxLL6qZ6qSBM1RGk7Sef45pyrPfnBN2BRW7zHfz8tDaAlLvibo2eb7MRIVcJy9x RbTiRF40YPN530O9qyrA7xy62Mcagv+O4y/Mc+M3Ub1bCp+qyjY/phMIdlr0ItTS7dbJXSBvk VBMFqkRSz92+cfs3hFlYMmNaut5yjxkhBEYJHfoH1D2beLlcj61QuL/950xAk5mCGwH4SMwGA jtdl6YHNUf2bFcxVdMpOn5MBNMBO5Bc4ni8OUOqSLoPlVflgSX1eeRFrwazcPQBRpy/2D4Eo3 6E4VeXVWG2nf5DGlkzRCNhDED4Y1iPGOwjpThJWPObgfxW9sgemDmEJMnTkBBXqD5n6IEDypr WuqT0mfjLKtL4X/VD2STLUkO6v2j3lFmR5Wfl8b5rzVRkhL2ygLh84e4SX5wLgKGC+FwzfCLX xTPnaIOaqTtFjPTPGAvsMFwlplR1iqqae6almN0Xd75SUuyewsa3XuGnTWpT4mxiCzpbOnRGL J6AcuFA+Cj4ARlleR9ZkIkoNeAoA++kxSJFYK4LYoP4LWg0OHNk0wlQmdAQJtEw3mwD9P9+ag 67fQkJwdgeW3sb7tGojJx1ygxabrvTfOV7iplY5zdtCRQm2xzNW0lDQrelbPh+yb/chUcNmec dzIccoC8S3zGtEJ+cOPg6buHvq1VcZEvOmT2h1eyF/vVjozKqqTh0gL7h7DFKUhctmYGtAr/ Received-SPF: pass client-ip=212.227.17.21; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/13 04:01:58 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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:257521 Archived-At: Arthur Miller writes: Hi Arthur, > This isn't any kind of drammatic difference for most use; file I/O > is dominated by disk access anyway, but i still don't like to spend cpu > on unnecessary evaluations, so I wonder if we could get native predicate > in elisp? I don't know whether we will add this function, but in case of: you shall call a file name handler first. See for example Fdirectory_files. Best regards, Michael.