From debbugs-submit-bounces@debbugs.gnu.org Sat May 18 18:47:33 2024 Received: (at submit) by debbugs.gnu.org; 18 May 2024 22:47:33 +0000 Received: from localhost ([127.0.0.1]:35595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8Spw-0000yM-MP for submit@debbugs.gnu.org; Sat, 18 May 2024 18:47:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:54646) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1s8Spu-0000yE-SZ for submit@debbugs.gnu.org; Sat, 18 May 2024 18:47:31 -0400 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 <~@wolfsden.cz>) id 1s8Spq-0006Dp-P2 for bug-guile@gnu.org; Sat, 18 May 2024 18:47:26 -0400 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1s8Spn-00005o-NH for bug-guile@gnu.org; Sat, 18 May 2024 18:47:25 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id 51AF7292131; Sat, 18 May 2024 22:47:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1716072439; bh=X+TMoV75HGXwuoHxv0J4G6Yv/w5+kVdmKY5J+hrGeH0=; h=From:To:Cc:Subject:Date; b=lO8UA14Chw/3IMfVLXwfrxcJBjmxltVdaPY3kP3vtN7wkPcV1297ZdtEinx1vlvvF 0b+BhuVhT/HMwkDz72fs/ok5OntilZk5DVwpRFgKhbfUAiqvA8ntYZAz4yLP5lwGHX EFZG3bv9/WhKixGnJknXDSZ2P17MXr4VVFw4ZrZ1SobsvLap0m9Z/8IfWHhXQZY+u8 LG8lPpA8tK7pdXxu6Zm8Qw27d1GrbMbcLUK+AXJ1K9qKoMmhcm+VKbtSfuGPb1x9eF pWriD4qusPF9wnNW7A6sApgng+AWHDf4/iCtPDMV6DssPpiVq+m/Vasv5KLcc2IiD4 xlnk2tQqoTXklaaeGL6JUZqNuOOa1t+nTdZ2HX+z8xa+oVc1ykAYdIA2ibbWiFv+hf i59Pff2QtfK1ntj9LyoM5p5zpPrtfrQePy1P8Nl8e+wLXEzCllHwlS42ZBA8yFUJvz UpRntu7HsWHeYU2pO4eurasoM6n0mhBCWTKzrnE1BX2AzKc8W7wPxVw8RGL9t5Tp1x tveWj8nb/2diQN1VcIyisigzbBWxq4A0hZFZAgxRiirIsL0o4wz832x7By+IbkDxrd qr0GGPSPkfVDcL3gXrqxaGeqbVJy55Z1va6KTQvE8pk/KYFw3tPWlWcwO+stB+MELk c6Z59KE2UlrsFbPRGBUT2pLk= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from localhost (unknown [146.70.134.188]) by wolfsden.cz (Postfix) with ESMTPSA id 24E6E292333; Sat, 18 May 2024 22:47:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1716072438; bh=X+TMoV75HGXwuoHxv0J4G6Yv/w5+kVdmKY5J+hrGeH0=; h=From:To:Cc:Subject:Date; b=l2NLPVVsWUrBWitilfuaqn+MHZeCg1rAw42CAilQ6cLxVm/kFhhi8Il8VK2cAb/9P CmkbwkjqBC0q+T4Br+/y91v/3tUR3otbrGqu13m0RjjWPUW58fRj7ylHwFZIGPDRCq R7c3BMtACIl9Vb1qqm5qDBsy2BlihARewv8nqt0XIRJglF1QgoNh8NtcDULxYsJr6+ ZAVatBh5Vju4y9LkWzPVH4kmKXKlru/jd3BIimcBWlHWMKq+Cqbz+IHwi8kvHoXmDa CmllR52Ks5ZfRfzZ+BQwLqXoMOMNBPBj9pA+WN7kLbXloRkik9X3J76IU4eVyU7JCC atSY0/vDNpf2uzd5TE7EShsqfj0UXpW4VVg92mjeNExWLNxrB8pq3gKY61gqx1TV48 c/8643KLNaAqJA1hqMaA4cPe1rOhOOTzmbMoH0TFzbfd+s9DxqNY6yRqw9lYuou/hG f7gtxfCyGgHUcnKfO/Tr2K/hAu4/OlUeTkoGBMow06mexLKr6hKWRcDAzVCNqBy0ZN lUcAz0TWNRiSdRVmTdUpi19N5rr9PXZZxMdgdMKKDBLXGdj1eL1KAAzjYB5YL0LgWF HeXxtVIv+T88wVPdz46Z5rzKoHmh8kOf61fh6Yhxv6uh153uNbeOBVY1dsgcA1t11K 9hDeCfLLCDjkk/LTs4Gf+yD8= From: Tomas Volf <~@wolfsden.cz> To: bug-guile@gnu.org Subject: [PATCH] doc: Recommend alist-copy instead of list-copy. Date: Sun, 19 May 2024 00:47:07 +0200 Message-ID: <20240518224707.28233-1-~@wolfsden.cz> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Tomas Volf <~@wolfsden.cz> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) The current recommendation of `list-copy' is not right and does not lead to preserving the original list: scheme@(guile-user)> (define x (list (cons 'a 1) (cons 'b 2))) scheme@(guile-user)> (define y (list-copy x)) scheme@(guile-user)> (assq-set! y 'b 3) $1 = ((a . 1) (b . 3)) scheme@(guile-user)> x $2 = ((a . 1) (b . 3)) Correct approach seems to be use `alist-copy' from SRFI-1 leading to the expected behavior of: scheme@(guile-user)> ,use (srfi srfi-1) scheme@(guile-user)> (define x (list (cons 'a 1) (cons 'b 2))) scheme@(guile-user)> (define y (alist-copy x)) scheme@(guile-user)> (assq-set! y 'b 3) $1 = ((a . 1) (b . 3)) scheme@(guile-user)> x $2 = ((a . 1) (b . 2)) * doc/ref/api-data.texi (Adding or Setting Alist Entries): Recommend `alist-copy'. --- doc/ref/api-data.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ref/api-data.texi b/doc/ref/api-data.texi index 3b9933d97..81552dec3 100644 --- a/doc/ref/api-data.texi +++ b/doc/ref/api-data.texi @@ -9509,7 +9509,7 @@ difference to you. If you need to keep the old value of an association list in a form independent from the list that results from modification by @code{acons}, @code{assq-set!}, @code{assv-set!} or @code{assoc-set!}, -use @code{list-copy} to copy the old association list before modifying +use @code{alist-copy} to copy the old association list before modifying it. @deffn {Scheme Procedure} acons key value alist -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 26 13:34:25 2024 Received: (at 71047-done) by debbugs.gnu.org; 26 Oct 2024 17:34:25 +0000 Received: from localhost ([127.0.0.1]:42467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4kgD-0000kH-EJ for submit@debbugs.gnu.org; Sat, 26 Oct 2024 13:34:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4kgB-0000k3-Gc for 71047-done@debbugs.gnu.org; Sat, 26 Oct 2024 13:34:24 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t4kfY-00019O-Gj; Sat, 26 Oct 2024 13:33:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=aCHB4xoDbRhpIcukP6biGHDJZorriqHPxX/RezNWPvg=; b=FlKrfuI1A7iaupcESIlU W1cNKV8JBHWKB1ScLSVQBSazr8WhviobCb+dhlGSPYcubahUQKRUh9Zx+ES7A/mN5msvfQNIr3Txb Lsw2qEiccWA8NWF5u/U5tx3bRjGdijyjeO8tiB1PU1/YsKWapgEBxvAO8ytTCc+esMTDpPFMbsTsi EUmRasVwD/Ut8UK9use2DSAAbsBgEQk02btQsk3y0Xl7BRgXnNJngAHDor5PduAwWie+HPouWGduB vlCUUcK9y0Uv92hGfP97LU91ODIXYIPpLd5szI8uwXRYGpdc5204g5aVmrX8U7YVOwcLsNSVazrxY p9RaqfaDDjcwng==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Tomas Volf <~@wolfsden.cz> Subject: Re: bug#71047: [PATCH] doc: Recommend alist-copy instead of list-copy. In-Reply-To: <20240518224707.28233-1-~@wolfsden.cz> (Tomas Volf's message of "Sun, 19 May 2024 00:47:07 +0200") References: <20240518224707.28233-1-~@wolfsden.cz> Date: Sat, 26 Oct 2024 19:33:42 +0200 Message-ID: <87r082u5u1.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71047-done Cc: 71047-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Tomas Volf <~@wolfsden.cz> skribis: > The current recommendation of `list-copy' is not right and does not lead > to preserving the original list: > > scheme@(guile-user)> (define x (list (cons 'a 1) (cons 'b 2))) > scheme@(guile-user)> (define y (list-copy x)) > scheme@(guile-user)> (assq-set! y 'b 3) > $1 = ((a . 1) (b . 3)) > scheme@(guile-user)> x > $2 = ((a . 1) (b . 3)) > > Correct approach seems to be use `alist-copy' from SRFI-1 leading to the > expected behavior of: > > scheme@(guile-user)> ,use (srfi srfi-1) > scheme@(guile-user)> (define x (list (cons 'a 1) (cons 'b 2))) > scheme@(guile-user)> (define y (alist-copy x)) > scheme@(guile-user)> (assq-set! y 'b 3) > $1 = ((a . 1) (b . 3)) > scheme@(guile-user)> x > $2 = ((a . 1) (b . 2)) > > * doc/ref/api-data.texi (Adding or Setting Alist Entries): Recommend > `alist-copy'. Applied, thanks! From unknown Sat Sep 20 16:32:38 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 24 Nov 2024 12:24:14 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator