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: Wed, 14 Oct 2020 11:19:02 +0200 Message-ID: <87lfg9jhbt.fsf@gmx.de> References: <87r1q2mu4t.fsf@gmx.de> <87d01ml0zd.fsf@gmx.de> <87362ikm15.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="32614"; 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 Wed Oct 14 11:22:43 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 1kScza-0008MM-Tz for ged-emacs-devel@m.gmane-mx.org; Wed, 14 Oct 2020 11:22:42 +0200 Original-Received: from localhost ([::1]:56488 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSczZ-00058f-Q4 for ged-emacs-devel@m.gmane-mx.org; Wed, 14 Oct 2020 05:22:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kScw9-0004HH-UK for emacs-devel@gnu.org; Wed, 14 Oct 2020 05:19:09 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:53431) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kScw7-0006KL-Mt for emacs-devel@gnu.org; Wed, 14 Oct 2020 05:19:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1602667143; bh=KhQImmCOZf1ieeE4bHW1WbQNuMXDAn3Y/rSWnyqFs1g=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=j/Jfa/qZQ9YnmfSVNqzgViSomh1wIrX+qdHTHQiG3GuC44l1JN7CcDeiI884zPCOz iaaXNWzXocF6OpuawRdQWfFPz1ONxwhX2dX+XEFMISIYMiyQCy2ehvVcp/dp5jxbZn Y0r+j7e2B/KshaoTfhoMeKT+PHM80YK/QZ4WZwwk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([212.86.61.126]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MoO24-1k8kbH1dk0-00orL4; Wed, 14 Oct 2020 11:19:03 +0200 In-Reply-To: (Arthur Miller's message of "Wed, 14 Oct 2020 01:20:46 +0200") X-Provags-ID: V03:K1:Ory66iXYl4FSTml8GqQ55mbiXTR8zPPjGpPXHDrOrRcn/3c+VdZ x92bG7EtQrYE0uzDLLr+ehX66DtYnSrhCu/Dq6chSnDfzs3A36xmKUAFu4ssFJJI0sT/K30 6if4bqgt++5ugX+LG4e9hcPYAlgt9mGdljqgTGrUVGvw7uZQmgWIWsAVSxEUgUNzuoPM1II S0OxW5Lc823t2y9LXJlQw== X-UI-Out-Filterresults: notjunk:1;V03:K0:4vZeWmpVVsY=:yPGV67aHnJBZqsdXghBVjr 9vIF1HQvas6fEF49mHdtnVT+Fq+3P2CmkcVbbxTmA2jcmnOwHcIF9nqC/KzOr9PDArj7NhcFx s7MI9wuH+8MJBKtb87JEIgdVxlwGNhjupvIESdY/iioeU/u/VeNs1Kz3hlG4U38EOP5ArfDf9 b+G9KuehF+MVd9AxvwhvDvsX5gnT8ITUXUgBLUxuB63bEb1Ngxx2ksBQRpsfzttp6YVsS1GlH IeixUr8WhE3sOYThqytiS83WSzJUZy0uTKkOdl32No2+pZqSKulLu4haU5JGaWY0nRx94ktFH Ce4USLDwtegfKXU0/h3DCfWe/QgRfJum1XbyTZvfTv4LgTt1aAyN9wD0qCjg3CTAeAyWvE9qC qfVlUc1tsOoLT5IJIeikmF4cP9K8D2yY3zHnxbB6Gv8BJ2/epLHXogRhDent3aErfbknrHjjN dbTizzZk3S7q32fJvhexFbYT9OcHEof9q5hV8sk9ZNnY85WzFyK1xTOcDhWQJA/U+rWmWXDpy XQxtgIKakbFXqsiiC+P+3N6qD0REwT21ebFESEbEDbDS/pmVzM9twdKy2tTk+xylmeQuf/z7z 9aE8d8rQ/PoAb7rA5ED09T01yqf3iwbSr4ED5GdBbbwwHoZRxdzi3rfRX1g8uX36uL1xk6ZM2 N/KAT3Ev/xoCkmFru3m37n/XVGKMaHyQ7PMAxrfItqcwKrPkodkqHYWj9sOINfov08OYUTVow wg+Ue2b4OIainV3T9zST1ARRKHS4MPw+4opwhvTMmBufqTi9iU+8LFzOYR8/6aK28RXrgsW8 Received-SPF: pass client-ip=212.227.17.20; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/14 04:44:46 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] 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:257626 Archived-At: 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.