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#7083: Why is `copy-tree's symbol-plist carrying side-effect-free error-free? Date: Thu, 23 Sep 2010 01:23:44 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1285220489 5474 80.91.229.12 (23 Sep 2010 05:41:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Sep 2010 05:41:29 +0000 (UTC) Cc: 7083@debbugs.gnu.org To: Andreas Schwab 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 1OyeYe-0005XQ-Lx for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Sep 2010 07:41:26 +0200 Original-Received: from localhost ([127.0.0.1]:40846 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OyeYW-00074Z-L4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Sep 2010 01:41:16 -0400 Original-Received: from [140.186.70.92] (port=39942 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OyeYL-000741-I3 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 1OyeYJ-0002LL-2K for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2010 01:41:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56955) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyeYI-0002LF-Ty for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2010 01:41:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OyeFt-0007vx-RC; Thu, 23 Sep 2010 01:22:01 -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:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7083 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7083-submit@debbugs.gnu.org id=B7083.128521927130486 (code B ref 7083); Thu, 23 Sep 2010 05:22:01 +0000 Original-Received: (at 7083) by debbugs.gnu.org; 23 Sep 2010 05:21:11 +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 1OyeF4-0007vf-L4 for submit@debbugs.gnu.org; Thu, 23 Sep 2010 01:21:11 -0400 Original-Received: from mail-ww0-f46.google.com ([74.125.82.46]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyeF3-0007va-06 for 7083@debbugs.gnu.org; Thu, 23 Sep 2010 01:21:09 -0400 Original-Received: by wwj40 with SMTP id 40so828176wwj.15 for <7083@debbugs.gnu.org>; Wed, 22 Sep 2010 22:23:45 -0700 (PDT) Original-Received: by 10.216.187.143 with SMTP id y15mr996226wem.74.1285219424773; Wed, 22 Sep 2010 22:23:44 -0700 (PDT) Original-Received: by 10.216.67.195 with HTTP; Wed, 22 Sep 2010 22:23:44 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: jWK_EZpGN4bxIzol9c2LsHDLagg X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 23 Sep 2010 01:22:01 -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:40368 Archived-At: On Wed, Sep 22, 2010 at 5:35 PM, Andreas Schwab wrote: > MON KEY writes: > >> It (potentially) `nconc's `nreverse's and `aset's the TREE arg recursively. > > Only the copy. > Only for the copy of a list. Why has this bug been marked done? When copy-tree copies vectors they share structure. (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]? If not, it should be documented that when copy-tree copies vectors the "copy" will share structure just as with `copy-sequence'. Regardless, simply marking the bug report as done with only a terse 3 word reply is obnoxious and not the least bit helpful for anyone else referencing this report in the future, esp. as there does appear to be a bug. > Andreas. -- /s_P\