From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Nicolas Petton Newsgroups: gmane.emacs.bugs Subject: bug#30626: 26.0.91; Crash when traversing a `stream-of-directory-files' Date: Fri, 02 Mar 2018 21:16:36 +0100 Message-ID: <87vaeefd23.fsf@petton.fr> References: <87inaiss6l.fsf@web.de> <6FCF6ACA-4F29-4B6B-BE9D-D7130C6E9495@gnu.org> <87fu5moe4c.fsf@web.de> <877eqyocro.fsf@web.de> <83zi3uz4nb.fsf@gnu.org> <87lgfd52by.fsf@gmail.com> <87bmg91ity.fsf@web.de> <83h8q1yuin.fsf@gnu.org> <87po4pnl0a.fsf@web.de> <837eqxyqoe.fsf@gnu.org> <87lgfdnf86.fsf@web.de> <87muzs11hk.fsf@web.de> <87606e4lel.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1520021714 16864 195.159.176.226 (2 Mar 2018 20:15:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 2 Mar 2018 20:15:14 +0000 (UTC) Cc: 30626@debbugs.gnu.org To: Noam Postavsky , Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 02 21:15:09 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1err5A-0003ad-0n for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Mar 2018 21:15:08 +0100 Original-Received: from localhost ([::1]:37317 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1err7C-0004kt-9O for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Mar 2018 15:17:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1err74-0004kg-AX for bug-gnu-emacs@gnu.org; Fri, 02 Mar 2018 15:17:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1err71-0004Ki-2I for bug-gnu-emacs@gnu.org; Fri, 02 Mar 2018 15:17:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33661) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1err70-0004Ke-Jy for bug-gnu-emacs@gnu.org; Fri, 02 Mar 2018 15:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1err70-0001bW-9o for bug-gnu-emacs@gnu.org; Fri, 02 Mar 2018 15:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Petton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Mar 2018 20:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30626-submit@debbugs.gnu.org id=B30626.15200218106146 (code B ref 30626); Fri, 02 Mar 2018 20:17:02 +0000 Original-Received: (at 30626) by debbugs.gnu.org; 2 Mar 2018 20:16:50 +0000 Original-Received: from localhost ([127.0.0.1]:41558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1err6o-0001b4-CX for submit@debbugs.gnu.org; Fri, 02 Mar 2018 15:16:50 -0500 Original-Received: from petton.fr ([89.234.186.68]:45614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1err6m-0001ap-Qr for 30626@debbugs.gnu.org; Fri, 02 Mar 2018 15:16:49 -0500 In-Reply-To: <87606e4lel.fsf@gmail.com> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=petton.fr; s=mail; t=1520021801; bh=chxFAIhvtLFP0jp1QV2a47jvta88xwGqiavG0MfX0PI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:MIME-Version:Content-Type; b=bJCNNn6mvu6fkPS7ilvQ5tr9VFnMDlXt4oEqvFD3O1p5PYL/ETSAZgCzuL50ptBNP3+JsFk9OMdUUga6t4mhMhQDQld/ewo6ywCYef7C78A3Al2y6MV8620Z+GCTr6iggPXo2QGDKXkXCw6pbPBvTxSHm3d/erJ9QD34hyxUaok= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:143845 Archived-At: --=-=-= Content-Type: text/plain Noam Postavsky writes: > Now, I can see that letting stream0 automagically get access to the > unfolded result can be an optimization in some cases, although in this > case it's a pessimization. stream.el is at its core just an implementation of lazy-cons cells, so not letting stream0 get access to the result would mean changing the core implementation (I'm not necessarily against it). If we accept that `seq-elt', and other positional functions of seq.el should not work on streams, then I could rewrite stream.el to make it a positioned stream where previous elements are discarded after each element generation. However the list of supported functions from seq.el API would be significantly reduced. > It could also affect the semantics if unfolding the stream has side > effects, not sure if stream.el makes guarantees about that though. No, it doesn't. Nico --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE1AWqLIYsVPF+7mvg6LzXhmr8+XgFAlqZsSQACgkQ6LzXhmr8 +XjObQf/bNEvOwmzGP7PM1qqjrIJcwBmzYi1s2FdhKp8TVjfOdtsc2Ovt+yBBnm+ 7OT9F1v9H6jyiQyzakcKi8O/TdtleZmmJQqGeGoWDOfJcQ0Ijwbtb7BwA7218bdT 9epzevOcmdc7XxQtQpf79SV+KSQq7OiHbAO4i2tBTU3h8QTtZzopXAfNVwpXaQsL BZBi4y36jpOZcHT18S81hAp9ADJRksnhAXkWSRyXBjiXzcigdB3Jf5NrSBNV/SEr F/uBHzD8RHG4rCHFVGzbv4CtDetgRwVRfGUEkl1IbHJyV9Ot3oMCY0GQB3mcGoOT fRf13nEhfGqlVFR1+JE6VydyVIDkQg== =r4Sx -----END PGP SIGNATURE----- --=-=-=--