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: Fri, 16 Sep 2011 02:14:34 +0800 Message-ID: References: <70AD30BE45C847BE828A3E8A71280A8E@us.oracle.com> <95CFAF98BEBE4DFAB885B85F02126C57@us.oracle.com> <87ehzktj6b.fsf@gnu.org> 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 1316110533 1784 80.91.229.12 (15 Sep 2011 18:15:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Sep 2011 18:15:33 +0000 (UTC) Cc: Lars Magne Ingebrigtsen , Andreas Schwab , 9469@debbugs.gnu.org To: Johan =?UTF-8?Q?Bockg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 15 20:15:28 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 1R4GTA-000123-7Q for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Sep 2011 20:15:28 +0200 Original-Received: from localhost ([::1]:37436 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4GT9-0002bL-MB for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Sep 2011 14:15:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4GT6-0002bG-Op for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2011 14:15:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R4GT5-0008MM-GR for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2011 14:15:24 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4GT5-0008MI-Cr for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2011 14:15:23 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R4GXa-0001bh-Kw; Thu, 15 Sep 2011 14:20:02 -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: Thu, 15 Sep 2011 18:20:02 +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: notabug Original-Received: via spool by 9469-submit@debbugs.gnu.org id=B9469.13161107586121 (code B ref 9469); Thu, 15 Sep 2011 18:20:02 +0000 Original-Received: (at 9469) by debbugs.gnu.org; 15 Sep 2011 18:19:18 +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 1R4GWr-0001ag-QB for submit@debbugs.gnu.org; Thu, 15 Sep 2011 14:19:17 -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 1R4GWo-0001aX-Q8 for 9469@debbugs.gnu.org; Thu, 15 Sep 2011 14:19:16 -0400 Original-Received: by qyk33 with SMTP id 33so3062823qyk.3 for <9469@debbugs.gnu.org>; Thu, 15 Sep 2011 11:14:34 -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=DJS69x9nHMwQH43mxXaO2xwo4JMF3xtEboLO8w0HkkE=; b=nhcW6z96L4bgYgVHTPDJMowkBNIPm9dbPA9ZoE2gqX7IOtfTY/zmRJ7Ia1ooIPnVGY tXnS/yE/dBr4L9KxHPmZP30uhxk5khe1uopubYBlZ3q+lQUejioLm/++GNDCZaSqYn9i mWY86R1h8oF5wiTN4u66485UYbJRBhccrA810= Original-Received: by 10.224.214.5 with SMTP id gy5mr1248275qab.127.1316110474618; Thu, 15 Sep 2011 11:14:34 -0700 (PDT) Original-Received: by 10.224.6.72 with HTTP; Thu, 15 Sep 2011 11:14:34 -0700 (PDT) In-Reply-To: <87ehzktj6b.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 15 Sep 2011 14:20:02 -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:51191 Archived-At: On Wed, Sep 14, 2011 at 2:02 AM, Johan Bockg=E5rd wrote: > Stefan Monnier writes: >> There is no memoization: the quote does not *construct* the object, it >> just returns it. > > I think the "as written" bit is mildly confusing, and nearly falls into > this trap: > > =A0 =A0In other languages, an expression is text; it has no other form. I= n > =A0 =A0Lisp, an expression is primarily a Lisp object and only secondaril= y > =A0 =A0the text that is the object's read syntax. Often there is no need = to > =A0 =A0emphasize this distinction, but you must keep it in the back of yo= ur > =A0 =A0mind, or you will occasionally be very confused. > > =A0 =A0 =A0 =A0-- (info "(elisp) Printed Representation") This is kind of funny. Stefan and Andreas basically kept saying quote just returns the thing, but doesn't construct it. My mind couldn't grasp what that means. The reader is the chasm that I just couldn't cross. In my mind a program describes how something happens, it isn't the thing that happens. "(quote (a b))", `quote' is a function that returns a reference to something. And for it to return the same reference, then it must be memoizing based on the inputs. The passage Johan posted along with Drew's explanation has enlightened me. Thank you all. --=20 Le