From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#64960: Documentation for copy-sequence Date: Mon, 31 Jul 2023 07:24:21 +0200 Message-ID: <877cqgwt4q.fsf@web.de> References: <83leex2qmn.fsf@gnu.org> <83ila03jnr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26750"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: eliz@gnu.org, uzibalqa@proton.me To: 64960@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 31 07:25:16 2023 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 1qQLPA-0006lt-2J for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 Jul 2023 07:25:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQLOz-0007lJ-AX; Mon, 31 Jul 2023 01:25:05 -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 1qQLOx-0007kn-3G for bug-gnu-emacs@gnu.org; Mon, 31 Jul 2023 01:25:03 -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 1qQLOw-0002eD-Qc for bug-gnu-emacs@gnu.org; Mon, 31 Jul 2023 01:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qQLOw-0007HQ-5P for bug-gnu-emacs@gnu.org; Mon, 31 Jul 2023 01:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Jul 2023 05:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64960 X-GNU-PR-Package: emacs X-Debbugs-Original-To: uzibalqa via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: Eli Zaretskii , uzibalqa , 64960@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.169078108427958 (code B ref -1); Mon, 31 Jul 2023 05:25:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Jul 2023 05:24:44 +0000 Original-Received: from localhost ([127.0.0.1]:51598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQLOd-0007Gr-LB for submit@debbugs.gnu.org; Mon, 31 Jul 2023 01:24:43 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:34652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQLOb-0007Ge-UQ for submit@debbugs.gnu.org; Mon, 31 Jul 2023 01:24:42 -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 1qQLOW-0007k3-GA for bug-gnu-emacs@gnu.org; Mon, 31 Jul 2023 01:24:36 -0400 Original-Received: from mout.web.de ([217.72.192.78]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qQLOU-0002aA-U7; Mon, 31 Jul 2023 01:24:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1690781063; x=1691385863; i=michael_heerdegen@web.de; bh=bKg6cRR3FvXjqXHfcjaef1U+apJt9kfQTdmOSmihAhs=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=nnG+SXUkR+lo/2JVwvoioK4gl1/kYL+aYYFIsIEY47aMwaZ/hjRD4qteHB2ZEEimfRrmF07 rWrXvaHV5vzIYMIhRqpSDQhL3Cvii1fpYi6KmZrVmFF7x9j/le5fvq7i3m00QfIvCnhGk1PlD oIdbYxO/qHQCN6MQtNkMdwzKeJuXXXKgLP5Y3liCRcnH4n8gpkkuWmtKKKXSDi/sJKAQOD38H tc5qEEA0hOBYPtamf+9dy3K1/z8Yk1Mf6va1vDtDydXHBMRLNfHM5sLoBxge1h3nHr194w4Jk HtCbwjyxsFE5FTjiJ11H1krKlh/MAND2JhQskIOcAn3AnHkysTzw== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Original-Received: from drachen.dragon ([92.75.138.214]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MXGOC-1qMU4O3pWA-00YtMG; Mon, 31 Jul 2023 07:24:22 +0200 In-Reply-To: (uzibalqa via's message of "Mon, 31 Jul 2023 02:31:18 +0000") X-Provags-ID: V03:K1:Gco6AnF79o6y+tn+Bd7J/5UnTLAKZP5pQuqQXnXAfUR7NdGmwBQ 6cqzEdfpbFabrwfbET9nhN/RRlBOEvj/9di5+KYRafsjME4nYYEltIGlbQSgskgiKhI6Nhl DnrekK0vtrPFX4AbiqUJaJWvCnEnk5QsHOAKEfgoefNhPSVeYrbhhRiM6yKmBekplykFZ7Y Ikgu+ey9oT6FKAdcyQ1UA== UI-OutboundReport: notjunk:1;M01:P0:fG6BsQPaXyc=;l7gNd0IzMdNOwLBiZL+Z8oe+0Ie e/bh5gjQwPzql5Bi09futEsyh5l07K0h1KSz/asHbk7RfFmNpE9wIHaKC1pcRBxryZU0hoFgT uk+MztS/2r4EwG25Qil5M9clc7T3TrlMrd0NfUXe/rNhZuFk+xVka2BsnIWwurVsm0fnzdYiI S36eSsLpr9fv/XMMUdWj1h0ZTraJfI/wsGT8c6Cmke1u41z/oK05CNx+FnuD1S0Qtt5CX28cA WyYYTvNQwOdvgQPrazrp/nXKrrOlAzKwu2/7KWn4eXO9McCXHug1bH5wAFFJzI7/36H9It+mX 8M1Dzn2F0EPPzDnF8faI4ENu52U831hXl13HLClwsGwLVyUtiPn1uu3qA8oXiYD1aeH60Bgyp qhHvdPWUtaSh33D59ZfKnpfk0aWGeXIixT72zF3koBcy4NcN4HSJNG1Fvx5TX0N1gKoCA0ixS ySKsE834ksx7qorCEEVWfwQ3SMnT+9NeyazuDL+286Ih2EkZflwNV6vyas7nrWFBkAvAkDbmC Ak7e8pZAcjLG83asbK+tLmcWzvI18+yUgPM/vbmqDH4rQpHnoO+pr/McvGk3SrAuQpnRPgbj2 Ld+1CjKs6UlVfw5ijA/3qI/QZWMs9doorREmnD+cjMmorqelxZ+Hrk5DDYjz25CUofBHmlQpv /QV7vgiSZ649sd5+8y4iyge5ZUOl2V5EOcz2w9WaMgG6sHIlZ/oZhz6WB8+kVgrusTR1qWjLn DkFmczLElpqkHiMERQ4eOZ1HbAdQejyfpCHKI3Eaqgc79YatNk2Bp27t7oeoXtcZDDJGxA/E Received-SPF: pass client-ip=217.72.192.78; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -37 X-Spam_score: -3.8 X-Spam_bar: --- X-Spam_report: (-3.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:266395 Archived-At: uzibalqa via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > > > When I modify the copy, the original remains intact. > > > > > > No, if you modify an element of the copy, the corresponding element of > > the original is also changed. That's what "shared" means. > > Except for strings It is irrelevant what happens when you modify elements of a copied string because it is impossible. The statement is simply not applicable to strings. That's why the docstring only speaks of "list, vector or record". Note that substituting a character in a string is not the same as modifying the character. You are substituting a sequence element with another one and not modifying an element in that case. The same is true for the list (1 2 3) for example. Exactly the same situation as for a string: You can replace the number 2 in a copy with another one but you can't modify the number 2 in the list. Numbers and characters are not mutable. Michael.