From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#73431: Add `setf` support for `stream.el` in ELPA Date: Wed, 25 Sep 2024 20:22:35 +0000 Message-ID: <87o74bqy9g.fsf@posteo.net> References: <827cc7fc-10be-4b93-bd67-f275193e5d84@protonmail.com> <87ikultl1v.fsf@posteo.net> <2522160a-761c-4f23-a9c7-4740b49681f1@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18919"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Okamsn , Nicolas Petton , 73431@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 25 23:39:55 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1stZjm-0004jH-BF for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Sep 2024 23:39:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stZjW-0008Nf-5o; Wed, 25 Sep 2024 17:39:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1stZjU-0008NR-9G for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2024 17:39:36 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1stZjT-0003hn-TD for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2024 17:39:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=2mTXDjaFaSDpHPF6BQQLdKJ0kSiOnpvfMhLB+/cUhrQ=; b=f3lDDUJOV5ODIBlFmcYkkejnwGg+jKGyJ2BOyHxsDDxejnW7Xb5vuL/7CO0Peybp91lLWfWK7skPWGtvvYCfBaMljpnbpu8O3NNp7npPLbH33x/lwuuc0I7KtDLUKOBotGY+Kp4BaYHsnPti9NpGB5FcRVGaNjjhcx7ootWgsbAmP2sEBW1Ca5HlYA++u+KhBm4+2Oi6fbOIW7PegWMy+FM4mJR7j80xyA3Mw8Lxbe3L/FlMKHFV26CBU37idF8D5JFZlcep7XBMxFsKHpu/NF8x1sujVt+VTrBZm2DEyRPZ8KTDul7vcgknUDN4ZCrbjI8AP/jt4rCeGPiwpJXGnQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1stZju-00049N-2v for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2024 17:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Sep 2024 21:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73431 X-GNU-PR-Package: emacs Original-Received: via spool by 73431-submit@debbugs.gnu.org id=B73431.172730036915848 (code B ref 73431); Wed, 25 Sep 2024 21:40:01 +0000 Original-Received: (at 73431) by debbugs.gnu.org; 25 Sep 2024 21:39:29 +0000 Original-Received: from localhost ([127.0.0.1]:57381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stZjM-00047S-R6 for submit@debbugs.gnu.org; Wed, 25 Sep 2024 17:39:29 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:33413) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stZjJ-00046x-V8 for 73431@debbugs.gnu.org; Wed, 25 Sep 2024 17:39:27 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 08830240027 for <73431@debbugs.gnu.org>; Wed, 25 Sep 2024 22:22:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1727295757; bh=FpN4S514WjsUz7krcE/MFCfs9zX1u8iPd/OwHR7YVZw=; h=From:To:Cc:Subject:Autocrypt:OpenPGP:Date:Message-ID:MIME-Version: Content-Type:From; b=n/sgTMl0jc0roEB+12LaKahdf6OK4a+mxBiZDe9OLviNTJ212/o1OPQDMEl19QbVv 7zKhGAlztQybIKKIhQx7W0UP+WcbvJabxOmoGrX8u0z+5ZunLCi9Qj+W2a9Xf++b84 DnS8CSoWzPk4PA/N1Mk03M2GtL6FW0uqpAwv+f6VXXorTw+cYHoDhRgP+sQihAGXn+ qBWktZoqKJFtnIdlk2PZowyUfkewtawcGsX4bQn1ADX6AqqdSd3hoKnqzlnWPEcXU1 9IzHvQ5vaZbxkF+/T4R9zM04GLhAHWwUsmbDfbvoyEkxI5eJfT8GCgq0GVwy0chaB4 bksFyBdKcn0+Q== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XDSp34BKJz6tsb; Wed, 25 Sep 2024 22:22:35 +0200 (CEST) In-Reply-To: (Stefan Monnier's message of "Tue, 24 Sep 2024 22:56:14 -0400") Autocrypt: addr=philipk@posteo.net; keydata= mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof z4oM OpenPGP: id=philipk@posteo.net; url="https://keys.openpgp.org/vks/v1/by-email/philipk@posteo.net"; preference=signencrypt X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292425 Archived-At: Stefan Monnier writes: >> Currently, using `(setf (seq-elt STREAM 0) VAL)` silently fails, because >> it treats the stream as a list, breaking the stream. > > Sounds like a bug, indeed. But I'd rather fix it by making it fail > cleanly, to preserve the (current) immutability of streams (at least > until we decide that there's a good reason for streams to be mutable). One exception to the immutability of stream might be buffers? Or at least it seems like something that would be useful to have. >> On the desire for mutability, there is the included macro `stream-pop`. > > `stream-pop` does not mutate the stream. It only mutates a local > variable (which holds a (reference to a) stream). > > > Stefan > -- Philip Kaludercic on siskin