From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3467: 23.0.94; let + make-local-variable => let value made global Date: Fri, 05 Jun 2009 10:36:57 -0400 Message-ID: References: Reply-To: Stefan Monnier , 3467@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1244213870 9764 80.91.229.12 (5 Jun 2009 14:57:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jun 2009 14:57:50 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, 3467@emacsbugs.donarmstrong.com To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 05 16:57:39 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MCarS-00064P-OR for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Jun 2009 16:57:39 +0200 Original-Received: from localhost ([127.0.0.1]:59168 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MCarS-0001nd-6V for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Jun 2009 10:57:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MCarH-0001jG-TA for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2009 10:57:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MCarC-0001bC-6j for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2009 10:57:27 -0400 Original-Received: from [199.232.76.173] (port=35258 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MCarC-0001aq-2R for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2009 10:57:22 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48935) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MCarB-0001Bc-7C for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2009 10:57:21 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n55EvIj5010322; Fri, 5 Jun 2009 07:57:19 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n55Ej4NV008399; Fri, 5 Jun 2009 07:45:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 05 Jun 2009 14:45:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3467 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12442126267548 (code B ref -1); Fri, 05 Jun 2009 14:45:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 5 Jun 2009 14:37:06 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n55Eb0kV007536 for ; Fri, 5 Jun 2009 07:37:02 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:57936 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MCaXU-0005MX-8k for emacs-pretest-bug@gnu.org; Fri, 05 Jun 2009 10:37:00 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MCaXS-0005UZ-B9 for emacs-pretest-bug@gnu.org; Fri, 05 Jun 2009 10:36:59 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:34208) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MCaXS-0005US-2B for emacs-pretest-bug@gnu.org; Fri, 05 Jun 2009 10:36:58 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnsFAOPKKEpLd+nI/2dsb2JhbACBT9AlhAoFhgc X-IronPort-AV: E=Sophos;i="4.41,312,1241409600"; d="scan'208";a="39684092" Original-Received: from 75-119-233-200.dsl.teksavvy.com (HELO pastel.home) ([75.119.233.200]) by ironport2-out.teksavvy.com with ESMTP; 05 Jun 2009 10:36:57 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 46FAC87CA; Fri, 5 Jun 2009 10:36:57 -0400 (EDT) In-Reply-To: (Lennart Borgman's message of "Thu, 4 Jun 2009 23:14:49 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 05 Jun 2009 10:57:26 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:28508 gmane.emacs.pretest.bugs:24569 Archived-At: > If you eval these lines > (defvar w14 "global") > (defvar w15 "global") > (let ((w14 "let") > (w15 "let")) > (set (make-local-variable 'w14) "local") > (message "w14 maybe let: in buffer=%S, global=%S" w14 (default-value 'w14)) > (message "w15 maybe let: in buffer=%S, global=%S" w15 (default-value 'w15))) > (message "w14 top level: in buffer=%S, global=%S" w14 (default-value 'w14)) > (message "w15 top level: in buffer=%S, global=%S" w15 (default-value 'w15)) > the output will be > w14 maybe let: in buffer="local", global="let" > w15 maybe let: in buffer="let", global="let" > w14 top level: in buffer="global", global="let" > w15 top level: in buffer="global", global="global" > All values here except w14 global value on next last line are arguably > correct. The last value of w14 should be "global", not "let". > It looks like perhaps the call to (make-local-variable w14) does not > mark the "global let" value of w14 as let bound (or removes that > mark). Given the way let-binding and buffer-local bindings are currently implemented, it's difficult to make it work correctly in all corner cases, and even more so without slowing down the common case. So don't hold your breath. Stefan