From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Le Wang Newsgroups: gmane.emacs.bugs Subject: bug#9469: buffer-local variables seem to remember previous values Date: Mon, 12 Sep 2011 02:49:19 +0800 Message-ID: References: <70AD30BE45C847BE828A3E8A71280A8E@us.oracle.com> <95CFAF98BEBE4DFAB885B85F02126C57@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1315766997 18479 80.91.229.12 (11 Sep 2011 18:49:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 11 Sep 2011 18:49:57 +0000 (UTC) Cc: 9469@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 11 20:49:52 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R2p6E-0005Mz-OA for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Sep 2011 20:49:50 +0200 Original-Received: from localhost ([::1]:34118 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2p6E-000241-4O for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Sep 2011 14:49:50 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2p6B-00023j-0q for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2011 14:49:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R2p69-0007RK-By for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2011 14:49:46 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2p69-0007RG-83 for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2011 14:49:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R2pAH-00010W-QZ; Sun, 11 Sep 2011 14:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Le Wang Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Sep 2011 18:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9469 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9469-submit@debbugs.gnu.org id=B9469.13157672193842 (code B ref 9469); Sun, 11 Sep 2011 18:54:01 +0000 Original-Received: (at 9469) by debbugs.gnu.org; 11 Sep 2011 18:53:39 +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 1R2p9u-0000zu-EN for submit@debbugs.gnu.org; Sun, 11 Sep 2011 14:53:38 -0400 Original-Received: from mail-qy0-f179.google.com ([209.85.216.179]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2p9s-0000zn-Hp for 9469@debbugs.gnu.org; Sun, 11 Sep 2011 14:53:37 -0400 Original-Received: by qyk33 with SMTP id 33so527689qyk.3 for <9469@debbugs.gnu.org>; Sun, 11 Sep 2011 11:49:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=5IX1ijiT0UOvqoLKmu2olyMdTpkZQvm3P/woQLnReRQ=; b=fyCi58hnnhiJ87FvOk3jHfnAmtlfoaeflL1/iZyxK89YRxccpWUbvWpgArlcrNr27K QJU/aIIpJnP6CZOdfgg9miYbgh+xOROaMM6XVQhmcxggrZTOe3P2vUPY/IRGb92f6Ijf 6IBHuZGiJEgAPVzLSwCAkDl1GMoFDDVpigIAw= Original-Received: by 10.224.95.138 with SMTP id d10mr1132170qan.227.1315766959086; Sun, 11 Sep 2011 11:49:19 -0700 (PDT) Original-Received: by 10.224.61.1 with HTTP; Sun, 11 Sep 2011 11:49:19 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 11 Sep 2011 14:54:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:50962 Archived-At: On Mon, Sep 12, 2011 at 2:08 AM, Andreas Schwab wro= te: > This has nothing to do with the use of quote, but with the use of > destructive functions (setcdr) on a shared data structure. Of course you're technically right, but should the manual mention in the "quoting" section that using quote the way I did results in a shared data structure? This part was surprising to me. And I think it will be very surprising to others new to lisp. Specifically, if you read the stackexchange thread Drew pointed to: http://stackoverflow.com/questions/134887/when-to-use-quote-in-lisp It seems I'm not the only one who didn't realize that quote does not cons. > Andreas. > > -- > Andreas Schwab, schwab@linux-m68k.org > GPG Key fingerprint =3D 58CA 54C7 6D53 942B 1756 =A001D3 44D5 214B 8276 4= ED5 > "And now for something completely different." > --=20 Le