From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: MON KEY Newsgroups: gmane.emacs.bugs Subject: bug#7088: `copy-tree' of a vector copy sharing structure.with original Date: Thu, 23 Sep 2010 01:28:33 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1285220488 5472 80.91.229.12 (23 Sep 2010 05:41:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Sep 2010 05:41:28 +0000 (UTC) Cc: 7083@debbugs.gnu.org, Andreas Schwab To: 7088@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 23 07:41:26 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OyeYV-0005WB-Oh for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Sep 2010 07:41:25 +0200 Original-Received: from localhost ([127.0.0.1]:40842 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OyeYU-00074P-PD for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Sep 2010 01:41:14 -0400 Original-Received: from [140.186.70.92] (port=39917 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OyeYK-00073p-4P for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2010 01:41:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OyeYI-0002L6-KV for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2010 01:41:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56953) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyeYI-0002Kx-Hp for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2010 01:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OyeKk-0007y8-59; Thu, 23 Sep 2010 01:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: MON KEY Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Sep 2010 05:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7088 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.128521956430616 (code B ref -1); Thu, 23 Sep 2010 05:27:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Sep 2010 05:26:04 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyeJn-0007xg-9f for submit@debbugs.gnu.org; Thu, 23 Sep 2010 01:26:03 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyeJm-0007xF-B8 for submit@debbugs.gnu.org; Thu, 23 Sep 2010 01:26:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OyeMI-0000b1-0q for submit@debbugs.gnu.org; Thu, 23 Sep 2010 01:28:39 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:59969) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyeMH-0000av-VM for submit@debbugs.gnu.org; Thu, 23 Sep 2010 01:28:37 -0400 Original-Received: from [140.186.70.92] (port=43025 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OyeMG-0005t8-RB for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2010 01:28:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OyeMF-0000ac-MM for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2010 01:28:36 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:51927) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyeMF-0000aL-B7 for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2010 01:28:35 -0400 Original-Received: by wyb36 with SMTP id 36so1547974wyb.0 for ; Wed, 22 Sep 2010 22:28:33 -0700 (PDT) Original-Received: by 10.216.93.73 with SMTP id k51mr1044542wef.8.1285219713822; Wed, 22 Sep 2010 22:28:33 -0700 (PDT) Original-Received: by 10.216.67.195 with HTTP; Wed, 22 Sep 2010 22:28:33 -0700 (PDT) X-Google-Sender-Auth: cWrqkx0fa1Me52Wbs8an2Y2NH0E X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 23 Sep 2010 01:27:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40367 Archived-At: When copy-tree copies vectors the copy shares structure with the original. This is unlike the behavior of copy-tree on a list of lists: (let ((orig '((a b) (c d) (e f) (g h))) new-cp) (setq new-cp (copy-tree orig)) (equal (elt (prog1 orig (setf (car new-cp) "bubba")) 0) '(a b))) ;=> t (let ((orig [[a b] [c d] [e f] [g h]]) new-cp) (setq new-cp (copy-tree orig)) (string-equal (aref (prog1 orig (aset new-cp 0 "bubba")) 0) "bubba")) ;=> t Shouldn't idx 0 of the orig tree still be [a b]? Note This bug _should_ prob. have stayed with Bug7083 but that bug report was prematurely closed. -- /s_P\