From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: uzibalqa via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64960: Documentation for copy-sequence Date: Mon, 31 Jul 2023 02:31:18 +0000 Message-ID: References: <83leex2qmn.fsf@gnu.org> <83ila03jnr.fsf@gnu.org> Reply-To: uzibalqa Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20737"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64960@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 31 04:32:21 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 1qQIho-0005CI-Kl for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 Jul 2023 04:32:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQIhY-0000eM-Ef; Sun, 30 Jul 2023 22:32: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 1qQIhX-0000e5-0A for bug-gnu-emacs@gnu.org; Sun, 30 Jul 2023 22:32: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 1qQIhV-0005ik-TC for bug-gnu-emacs@gnu.org; Sun, 30 Jul 2023 22:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qQIhV-0002ln-OM for bug-gnu-emacs@gnu.org; Sun, 30 Jul 2023 22:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: uzibalqa Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Jul 2023 02:32: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.169077069010609 (code B ref 64960); Mon, 31 Jul 2023 02:32:01 +0000 Original-Received: (at 64960) by debbugs.gnu.org; 31 Jul 2023 02:31:30 +0000 Original-Received: from localhost ([127.0.0.1]:51527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQIgz-0002l3-Lf for submit@debbugs.gnu.org; Sun, 30 Jul 2023 22:31:29 -0400 Original-Received: from mail-4318.protonmail.ch ([185.70.43.18]:59533) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQIgx-0002kq-UI for 64960@debbugs.gnu.org; Sun, 30 Jul 2023 22:31:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1690770682; x=1691029882; bh=AXlDSd/LaciSSvwaVDyR3mjT2k7zBgUFj75emBK2/oo=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=AnGo8lSZAEViKUY9HSrV0wECLBRnjCV9OnzIf/vUvSu3xfGteDxSqoIbTgatqp/Ax zzAPZbHzFEZYQZzl4y65TSwe0KaOO1xHA5Hzy3xnjeycSIGTRDz2xjpK7InQ67VZJQ UsFOm5h2W5/nnqqFJBeKXz+rSLn5sBr+c8eIHfrzDu56Q3wjrapVOHXIG3pm9WTu98 HS2/zjHrd/3aPglucMGQ7cekaMmlUDzrqHItqh5lul/bdjz8O0vYkl4rQey6xe96tz JvSpG+B5IxzOr/Y4KnOq1BwqUA4Z0H8uRpQvzsk5KcUfdYD8YrAP5nS/HJnalRPAg+ LqVBM1X8bqwog== In-Reply-To: <83ila03jnr.fsf@gnu.org> Feedback-ID: 52887082:user:proton 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:266393 Archived-At: ------- Original Message ------- On Monday, July 31st, 2023 at 2:21 PM, Eli Zaretskii wrote: > > Date: Sun, 30 Jul 2023 19:20:45 +0000 > > From: uzibalqa uzibalqa@proton.me > > Cc: 64960@debbugs.gnu.org > >=20 > > > As the doc string says: the elements are not copied. You get a new > > > sequence whose elements are shared with the original one. > >=20 > > So it returns a copy but elements are not copied. So what happens exact= ly ? > > You get a reference to the original ? >=20 >=20 > Yes. >=20 > > When I modify the copy, the original remains intact. >=20 >=20 > 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