From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Petton Newsgroups: gmane.emacs.devel Subject: Re: Streams: add stream-delay and streams of directory files Date: Thu, 11 Feb 2016 21:33:25 +0100 Message-ID: <87r3gjt2ay.fsf@petton.fr> References: <87pow3mkyq.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1455222851 21571 80.91.229.3 (11 Feb 2016 20:34:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Feb 2016 20:34:11 +0000 (UTC) To: Michael Heerdegen , Emacs Development Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 11 21:33:53 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aTxvz-0008LA-2Y for ged-emacs-devel@m.gmane.org; Thu, 11 Feb 2016 21:33:51 +0100 Original-Received: from localhost ([::1]:53357 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTxvx-0008HB-UN for ged-emacs-devel@m.gmane.org; Thu, 11 Feb 2016 15:33:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTxvi-0008Gs-GJ for emacs-devel@gnu.org; Thu, 11 Feb 2016 15:33:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTxvd-0006Ne-Gu for emacs-devel@gnu.org; Thu, 11 Feb 2016 15:33:34 -0500 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:35690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTxvd-0006N1-Aj for emacs-devel@gnu.org; Thu, 11 Feb 2016 15:33:29 -0500 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id BE63F2085C for ; Thu, 11 Feb 2016 15:33:27 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Thu, 11 Feb 2016 15:33:27 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=uv9huhuc+6cu+lktbz77wdmhh20=; b=jFcuk WrPK2jZrCB2edgcyqzNJ8da5FbGI0D70r1gbUFJST0RFQAqls8VuL5plWv7lWiLg Rz4MD+Xdzdbn1Jc8dgtQ6DZj4pqUE9gxVOBvrdlwyHjKhR1gCBdk97HXN9B2FSS4 NTnqvKticU3QE57pzgMmv3/8F7uW/aZxmZsHSI= X-Sasl-enc: BbvmulpFKMw86MBZQuCJxBPwIyB6uL1DzsfDL+MP3Zrj 1455222807 Original-Received: from blueberry (lfbn-1-7726-61.w92-167.abo.wanadoo.fr [92.167.139.61]) by mail.messagingengine.com (Postfix) with ESMTPA id 2F30C680123; Thu, 11 Feb 2016 15:33:27 -0500 (EST) In-Reply-To: <87pow3mkyq.fsf@web.de> User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/25.1.50.1 (x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.29 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:199772 Archived-At: --=-=-= Content-Type: text/plain Michael Heerdegen writes: > Hello, Hi Michael, > attached (at the end) is a patch for stream.el adding two things: (1) a > new macro `stream-delay' and (2) a function `stream-of-directory-files' > returning streams of directory files, optionally recursively. > Especially in the recursive case, a stream of directory files is better > to handle than a list: since it's delayed, it just encapsulates a > directory search to do. No huge list needs to be accumulated; you can > stop when you have found what you have searched for, resume searching > later, etc. - just as with any stream. It looks really good, thank you! Would you mind adding tests for `stream-delay' and `stream-of-directory-files'? (A regression test for the stream implementation of `seq-copy' would be great too!) Thanks again, Nico --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: GPGTools - http://gpgtools.org iQEcBAEBCAAGBQJWvPAVAAoJECM1h6R8IHkQrQYH/R73pu9sW6gGNS9QnJudTOhX PEtx7Lfc8Ai11B17wIID2kh7yOPnb5ER7fmUHdeRygSvKd9l6H+G+2cVh/1WJt2L nhJUc9Q3qpDQk+admCCw8ZPuCCZUJA6+W3GeXzo+XWOi8v3JJ1lpytdnM4jmnSyR iUImNVPk01m3H7sWRMEfg2eBeEztUmDVSHFNTULZ09JFZurEUCmsdier7FlAdqI9 C04QaiAj7smk7lxgobomRC5+Cd2MK+ebwCULspIIIqT17VomzzueHqszF7n0uMwp 9RZC0z1L/g4xNfIH7w072EbOwj7m0BwUOqQJdGHn+FyOLTHvNraFlvqasd+HKC4= =tfqf -----END PGP SIGNATURE----- --=-=-=--