From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64960: Documentation for copy-sequence Date: Mon, 31 Jul 2023 05:21:44 +0300 Message-ID: <83ila03jnr.fsf@gnu.org> References: <83leex2qmn.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12754"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64960@debbugs.gnu.org To: uzibalqa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 31 04:22:18 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 1qQIY2-00032a-LG for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 Jul 2023 04:22:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQIXs-0003Mb-IQ; Sun, 30 Jul 2023 22:22:04 -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 1qQIXq-0003M7-CC for bug-gnu-emacs@gnu.org; Sun, 30 Jul 2023 22:22:02 -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 1qQIXq-0003l3-4L for bug-gnu-emacs@gnu.org; Sun, 30 Jul 2023 22:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qQIXp-0002Uq-NM for bug-gnu-emacs@gnu.org; Sun, 30 Jul 2023 22:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Jul 2023 02:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64960 X-GNU-PR-Package: emacs Original-Received: via spool by 64960-submit@debbugs.gnu.org id=B64960.16907701119577 (code B ref 64960); Mon, 31 Jul 2023 02:22:01 +0000 Original-Received: (at 64960) by debbugs.gnu.org; 31 Jul 2023 02:21:51 +0000 Original-Received: from localhost ([127.0.0.1]:51483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQIXf-0002UP-EY for submit@debbugs.gnu.org; Sun, 30 Jul 2023 22:21:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQIXc-0002UA-Lg for 64960@debbugs.gnu.org; Sun, 30 Jul 2023 22:21:50 -0400 Original-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 1qQIXX-0003k5-3X; Sun, 30 Jul 2023 22:21:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=EkZsrQa65S7tz2coeS9gV0ag/1QdfU7TlrMJ+Cb6Vyc=; b=TMcA7q6Rz7Tq pprKYc2gS0FBO4AGXBziFPh6qPaDeozAGz8ktr4u5ajZka9qQWt9EWln+McbdaRgyqOieuKoNLeJN qEgxE+7roPkhPyZqV/GRf7adVCJXXs8CgYrmzkGBU70iaTBEPeaoJxfU14zho3BXL1IcltqJRus1w bt5Z+Rf+mHdvX1tUT0Zti02hgZ4NOkfosyw+ehYh2a0o4J2XGa25/E/BFk0sgAgBxnI/YBPOG+w4i NdB1+ZxNSdgdJFWQsM27bxLZJBbXSqJror2/ZcmyfeC8vpqj3pahhUXprYqKDGwS+sQZAneCSR7Io 2aPzOVAgCK/uLHv2jVbQbg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qQIXW-0003vF-G5; Sun, 30 Jul 2023 22:21:42 -0400 In-Reply-To: (message from uzibalqa on Sun, 30 Jul 2023 19:20:45 +0000) 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:266390 Archived-At: > Date: Sun, 30 Jul 2023 19:20:45 +0000 > From: uzibalqa > Cc: 64960@debbugs.gnu.org > > > As the doc string says: the elements are not copied. You get a new > > sequence whose elements are shared with the original one. > > So it returns a copy but elements are not copied. So what happens exactly ? > You get a reference to the original ? Yes. > 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.