From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Kraft Newsgroups: gmane.emacs.help Subject: Re: lexical-let detail semantics Date: Mon, 27 Jul 2009 14:09:21 +0200 Message-ID: <4A6D98F1.6070107@domob.eu> References: <7ca3351f-a372-4756-8777-bf87c003d1c2@e11g2000yqo.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1248696808 9304 80.91.229.12 (27 Jul 2009 12:13:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jul 2009 12:13:28 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 27 14:13:21 2009 Return-path: Envelope-to: geh-help-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 1MVP4z-0004xG-EQ for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Jul 2009 14:13:21 +0200 Original-Received: from localhost ([127.0.0.1]:49981 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVP4y-0000NI-QQ for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Jul 2009 08:13:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVP0y-0006xv-Fd for help-gnu-emacs@gnu.org; Mon, 27 Jul 2009 08:09:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVP0v-0006vY-1P for help-gnu-emacs@gnu.org; Mon, 27 Jul 2009 08:09:12 -0400 Original-Received: from [199.232.76.173] (port=51821 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVP0u-0006vQ-BH for help-gnu-emacs@gnu.org; Mon, 27 Jul 2009 08:09:08 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:55966 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MVP0t-0000An-2T for help-gnu-emacs@gnu.org; Mon, 27 Jul 2009 08:09:07 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MVP0n-0007a0-Se for help-gnu-emacs@gnu.org; Mon, 27 Jul 2009 12:09:01 +0000 Original-Received: from d86-33-197-36.cust.tele2.at ([86.33.197.36]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Jul 2009 12:09:01 +0000 Original-Received: from d by d86-33-197-36.cust.tele2.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Jul 2009 12:09:01 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: d86-33-197-36.cust.tele2.at User-Agent: Thunderbird 2.0.0.0 (X11/20070425) In-Reply-To: <7ca3351f-a372-4756-8777-bf87c003d1c2@e11g2000yqo.googlegroups.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66429 Archived-At: A.Politz wrote: > On Jul 27, 11:50 am, Daniel Kraft wrote: > [...] >> I'm happy that lexical-let works well to build closures (and in fact it >> seems that this is the main intention for lexical-let at all); however >> this code does not work as expected: >> >> (setq a 1) >> (lexical-let ((a 2)) >> ((lambda () (print a)))) >> => 1 >> > > I don't know, but this prints `2' in my emacs (GNU Emacs 22.3.1). I'm using 21.3.1, and there it is 1; but I checked with a development build, and yes, then I get 2. So it seems that was really a bug that got fixed, glad to know this! Thanks for pointing this out! Daniel