From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johan =?UTF-8?Q?Bockg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#9469: buffer-local variables seem to remember previous values Date: Tue, 13 Sep 2011 20:02:20 +0200 Message-ID: <87ehzktj6b.fsf@gnu.org> 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 1315936972 30681 80.91.229.12 (13 Sep 2011 18:02:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Sep 2011 18:02:52 +0000 (UTC) Cc: Lars Magne Ingebrigtsen , Andreas Schwab , 9469@debbugs.gnu.org, Le Wang To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 13 20:02:47 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 1R3XJm-0002UN-LB for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Sep 2011 20:02:46 +0200 Original-Received: from localhost ([::1]:48880 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3XJm-0006tk-9e for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Sep 2011 14:02:46 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3XJe-0006tB-VP for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2011 14:02:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R3XJa-0001zZ-Mj for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2011 14:02:38 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3XJa-0001zP-EL for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2011 14:02:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R3XNu-0002HH-52; Tue, 13 Sep 2011 14:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Johan =?UTF-8?Q?Bockg=C3=A5rd?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Sep 2011 18:07: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.13159372148741 (code B ref 9469); Tue, 13 Sep 2011 18:07:02 +0000 Original-Received: (at 9469) by debbugs.gnu.org; 13 Sep 2011 18:06:54 +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 1R3XNl-0002Gv-QE for submit@debbugs.gnu.org; Tue, 13 Sep 2011 14:06:54 -0400 Original-Received: from smtprelay-b22.telenor.se ([195.54.99.213]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R3XNj-0002Gn-83 for 9469@debbugs.gnu.org; Tue, 13 Sep 2011 14:06:52 -0400 Original-Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-b22.telenor.se (Postfix) with ESMTP id 424E7EA513 for <9469@debbugs.gnu.org>; Tue, 13 Sep 2011 20:02:22 +0200 (CEST) X-SMTPAUTH-B2: [bocjoh] X-SENDER-IP: [85.228.206.69] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj5hAPeZb05V5M5FPGdsb2JhbABBAYkbnlQLAQEBATczgVMBAQVWIxALIRACEw8BBBgBDAoaE4d5t1eDdgGCdwSkYQ X-IronPort-AV: E=Sophos;i="4.68,375,1312149600"; d="scan'208";a="1759120016" Original-Received: from c-45cee455.04-211-6c6b701.cust.bredbandsbolaget.se (HELO muon.localdomain) ([85.228.206.69]) by ipb4.telenor.se with ESMTP; 13 Sep 2011 20:02:21 +0200 Original-Received: by muon.localdomain (Postfix, from userid 1000) id 2F22648458B; Tue, 13 Sep 2011 20:02:20 +0200 (CEST) In-Reply-To: (Stefan Monnier's message of "Tue, 13 Sep 2011 08:54:58 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Mail-Copies-To: never X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 13 Sep 2011 14:07: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:51103 Archived-At: Stefan Monnier writes: >> "The special form quote returns its single argument, as written, >> without evaluating it. This provides a way to include constant symbols >> and lists" > >> Isn't the first sentence misleading? It does not *always* return a >> single argument as written. It does the first time, and memoizes >> subsequently. Where is the mention of that? > > 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: In other languages, an expression is text; it has no other form. In Lisp, an expression is primarily a Lisp object and only secondarily the text that is the object's read syntax. Often there is no need to emphasize this distinction, but you must keep it in the back of your mind, or you will occasionally be very confused. -- (info "(elisp) Printed Representation")