From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#11258: 24.1.50; lexical binding inconsistencies Date: Wed, 18 Apr 2012 03:03:11 +0200 Message-ID: <87d3754zsg.fsf@web.de> References: <87vckzsaul.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334710925 28250 80.91.229.3 (18 Apr 2012 01:02:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 Apr 2012 01:02:05 +0000 (UTC) Cc: 11258@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 18 03:02:04 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SKJHX-0000nX-6v for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Apr 2012 03:02:03 +0200 Original-Received: from localhost ([::1]:43696 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKJHW-0007JX-HC for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Apr 2012 21:02:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38201) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKJHQ-0007JJ-Ky for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2012 21:02:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKJHM-00058c-Ds for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2012 21:01:56 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKJHM-00058Y-AK for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2012 21:01:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SKJHW-0004rq-32 for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2012 21:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Apr 2012 01:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11258 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11258-submit@debbugs.gnu.org id=B11258.133471090618688 (code B ref 11258); Wed, 18 Apr 2012 01:02:01 +0000 Original-Received: (at 11258) by debbugs.gnu.org; 18 Apr 2012 01:01:46 +0000 Original-Received: from localhost ([127.0.0.1]:38964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKJHB-0004rH-Hf for submit@debbugs.gnu.org; Tue, 17 Apr 2012 21:01:45 -0400 Original-Received: from fmmailgate07.web.de ([217.72.192.248]:44533) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKJH4-0004qy-Ir for 11258@debbugs.gnu.org; Tue, 17 Apr 2012 21:01:38 -0400 Original-Received: from moweb001.kundenserver.de (moweb001.kundenserver.de [172.19.20.114]) by fmmailgate07.web.de (Postfix) with ESMTP id 1E51111BC02D for <11258@debbugs.gnu.org>; Wed, 18 Apr 2012 03:01:18 +0200 (CEST) Original-Received: from snow.dragon ([82.113.121.215]) by smtp.web.de (mrweb002) with ESMTPA (Nemesis) id 0Lw1CH-1SD7ga42P7-017ogw; Wed, 18 Apr 2012 03:01:16 +0200 In-Reply-To: (Stefan Monnier's message of "Tue, 17 Apr 2012 13:58:32 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-Provags-ID: V02:K0:p1ZrKnw+BkPWh8JLPXtd9aNct/yQ/seuCftzvoXWm1l HhHrMhhMzdVre+2ef46feuiMkmE9QC9BUr2AURwa4qzZwIU+UR xCG0ZVafkL2QLsUwM41NyLNsE3DfRrEiuaT0/7t/AxoCqeTH0d N5KcRkhF3gmLHwfSKq8SN9HGQcMo8s0CSaUSQYqFBXBOGx/qF0 /AtpT1leTFYLzj62j3VZD+OEN+p2vx4uzE/TyHlbqw= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:59189 Archived-At: Stefan Monnier writes: > > ; Test -*- lexical-binding: t -*- > > (defun test2 (arg) > > (interactive "i") > > ((lambda () arg))) > This is a bug in the handling of ((lambda ...) args) in lexical-binding: > the compiler treats it as (funcall #'(lambda () ...) args), whereas the > interpreter treats it as (funcall '(lambda () ...) args), so the > lambda's body is treated as lexically scoped when compiled but > dynamically scoped when interpreted. There is no scoping at all when interpreted. The dynamical scope is not established (else, we would get no error), which is right - just the lexical scope is missing. > I think the compiler is right, so the interpreter needs fixing. I'm > not completely sure it will be harmless, so it won't be fixed in 24.1. Ok. Regards, Michael.