GNU bug report logs - #9469
buffer-local variables seem to remember previous values

Previous Next

Package: emacs;

Reported by: Le Wang <l26wang <at> gmail.com>

Date: Sat, 10 Sep 2011 17:12:01 UTC

Severity: normal

Tags: notabug

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Le Wang <l26wang <at> gmail.com>
Cc: Andreas Schwab <schwab <at> linux-m68k.org>, 9469 <at> debbugs.gnu.org
Subject: bug#9469: buffer-local variables seem to remember previous values
Date: Sun, 11 Sep 2011 20:54:04 +0200
Le Wang <l26wang <at> gmail.com> 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/




This bug report was last modified 13 years and 308 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.