From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#9469: buffer-local variables seem to remember previous values Date: Sun, 11 Sep 2011 20:54:04 +0200 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 X-Trace: dough.gmane.org 1315767475 22018 80.91.229.12 (11 Sep 2011 18:57:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 11 Sep 2011 18:57:55 +0000 (UTC) Cc: Andreas Schwab , 9469@debbugs.gnu.org To: Le Wang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 11 20:57:51 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 1R2pDx-0007rN-7J for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Sep 2011 20:57:49 +0200 Original-Received: from localhost ([::1]:33739 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2pDw-0004nS-SW for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Sep 2011 14:57:48 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:40639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2pDu-0004nM-7s for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2011 14:57:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R2pDt-0000Xv-Cv for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2011 14:57:46 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2pDt-0000Xr-7o for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2011 14:57:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R2pI1-0001xJ-UY; Sun, 11 Sep 2011 15:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen 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 19:02: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.13157676957484 (code B ref 9469); Sun, 11 Sep 2011 19:02:01 +0000 Original-Received: (at 9469) by debbugs.gnu.org; 11 Sep 2011 19:01:35 +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 1R2pHZ-0001we-VE for submit@debbugs.gnu.org; Sun, 11 Sep 2011 15:01:34 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2pHY-0001wX-7o for 9469@debbugs.gnu.org; Sun, 11 Sep 2011 15:01:32 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R2pDI-0005xD-DX; Sun, 11 Sep 2011 20:57:08 +0200 In-Reply-To: (Le Wang's message of "Mon, 12 Sep 2011 02:49:19 +0800") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEVQRGImGTHLzOX49/10 bYybmbeIp1R+AAACPklEQVQ4jW2SQZKjMAxF5S6xt6vIBUx8Aajs5ZS8pxnp/leZL+juSXUmgTj4 WfpfQrT9+qysFcsn/QYPH4H1Dax3/YNlf49ougD7e8SDodH6G9jqaMu2nmBdXiMOOvB7abyAteqE pckZUV9As1H/B2pT4m27zwHqC2iuclu2Zr8jmjvl52p0guOfs2raP7a75O+Ir6i1iQA8dj41jh8A Ce/Pral8i6/1zPUYg/q8teEXQA/Qhy0WU+Gl6f4T4eef5iZUjiaJQuLsM4579eFSyvOwcoL6Bczd XFL52DPA2iJ98z9bdZTnTDL2gjpWxx42l7W6H74Ll8lMT3BERMX+sIHKy5gSAJ7hCBROdfc996JU Cq0VkktEOAApUYcAFWptGPLDDhoOYaaE4w5X4eRYUcAFPhl5Jg2gw48HAnyI8ugJERoacXZB2FAV AUNADnFMntsBXVwgnwMtKSHTmmr40aFDiLuF+AVMza8AIpolTankFMCvVAqjSVTysDJ3AMg60kGA Ek0qqqlwYvKx4zaRqDpPdFgqibITXgC7AhAJZf1o2m93Rl4zBlCWECGrNnvUjq4oR36OO7G2nlF2 gNNohFKI31SwlXIAp3GVgOryPEsZllA9wRD8oBmMb8LZLCExkXs4hSDkhWZUXeI6CE7Zx51kwvum OCwFJVZowovtp6+Ywpx06pmdYBpb0VjGFGI084Ta506EoYspIHn66S4r3cIupcw28LYx4MRzVsZ8 RoEYFdiV6I1hFjIz8nIufwEjmdFkmASPbwAAAABJRU5ErkJggg== X-Now-Playing: Nadja's _Radiance of Shadows_: "now i am become death the destroyer of worlds" X-MailScanner-ID: 1R2pDI-0005xD-DX MailScanner-NULL-Check: 1316372228.71926@1z4U2BPHVdinlG9QW6ejTg X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 11 Sep 2011 15:02: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:50966 Archived-At: Le Wang writes: >> 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. If I read your code correctly, Andreas is correct and precise as usual, if a bit terse. :-) The thing you're seeing has absolutely nothing to do with the use of quote. You're destructively altering a single list and expecting to see the list be different in various buffers. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/