emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Streams: add stream-delay and streams of directory files


From: Nicolas Petton
Subject: Re: Streams: add stream-delay and streams of directory files
Date: Thu, 11 Feb 2016 21:33:25 +0100
User-agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/25.1.50.1 (x86_64-unknown-linux-gnu)

Michael Heerdegen <address@hidden> 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

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]