From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Streams: add stream-delay and streams of directory files Date: Thu, 11 Feb 2016 22:48:23 +0200 Message-ID: <83y4ar7z3c.fsf@gnu.org> References: <87pow3mkyq.fsf@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1455223728 2784 80.91.229.3 (11 Feb 2016 20:48:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Feb 2016 20:48:48 +0000 (UTC) Cc: nicolas@petton.fr, emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 11 21:48:44 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 1aTyAN-0003Ht-Ex for ged-emacs-devel@m.gmane.org; Thu, 11 Feb 2016 21:48:43 +0100 Original-Received: from localhost ([::1]:53451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTyAM-0004nc-L3 for ged-emacs-devel@m.gmane.org; Thu, 11 Feb 2016 15:48:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39524) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTyAJ-0004nE-4V for emacs-devel@gnu.org; Thu, 11 Feb 2016 15:48:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTyAI-0002Xt-9Z for emacs-devel@gnu.org; Thu, 11 Feb 2016 15:48:39 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:32868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTyAB-0002WP-BZ; Thu, 11 Feb 2016 15:48:31 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4948 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aTyAA-0006hg-5V; Thu, 11 Feb 2016 15:48:31 -0500 In-reply-to: <87pow3mkyq.fsf@web.de> (message from Michael Heerdegen on Thu, 11 Feb 2016 14:32:13 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:199774 Archived-At: > From: Michael Heerdegen > Date: Thu, 11 Feb 2016 14:32:13 +0100 > Cc: Nicolas Petton > > 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. Thanks. Would you please consider adding suitable changes to the documentation for these patches?