From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#20640: 24.5; lexical-binding should work like a normal file-local variable Date: Mon, 25 May 2015 18:55:50 -0400 Message-ID: References: <55638701.9010400@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1432594589 1860 80.91.229.3 (25 May 2015 22:56:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 May 2015 22:56:29 +0000 (UTC) Cc: Philipp Stephani , 20640@debbugs.gnu.org To: Daniel Colascione Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 26 00:56:18 2015 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 1Yx1I7-0004t4-L6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 May 2015 00:56:15 +0200 Original-Received: from localhost ([::1]:45221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yx1I7-0002FV-8i for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 May 2015 18:56:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yx1Hy-00028G-Dz for bug-gnu-emacs@gnu.org; Mon, 25 May 2015 18:56:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yx1Hv-0001oA-RA for bug-gnu-emacs@gnu.org; Mon, 25 May 2015 18:56:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yx1Hv-0001o5-O3 for bug-gnu-emacs@gnu.org; Mon, 25 May 2015 18:56:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yx1Hv-0007jE-GQ for bug-gnu-emacs@gnu.org; Mon, 25 May 2015 18:56:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 May 2015 22:56:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20640 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20640-submit@debbugs.gnu.org id=B20640.143259455929690 (code B ref 20640); Mon, 25 May 2015 22:56:03 +0000 Original-Received: (at 20640) by debbugs.gnu.org; 25 May 2015 22:55:59 +0000 Original-Received: from localhost ([127.0.0.1]:55956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yx1Hq-0007io-KX for submit@debbugs.gnu.org; Mon, 25 May 2015 18:55:59 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:7813) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yx1Ho-0007iZ-Jf for 20640@debbugs.gnu.org; Mon, 25 May 2015 18:55:56 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AsEwA731xV/9N+3mhcgxCEAoVVuzcJh0sEAgKBPDkUAQEBAQEBAYEKQQWDXQEBAwFWIxALDiYSFBgNJIg3CM8jAQEBAQYBAQEBHos6hQUHhC0FnxeGaY8EI4I7gVkigngBAQE X-IPAS-Result: A0AsEwA731xV/9N+3mhcgxCEAoVVuzcJh0sEAgKBPDkUAQEBAQEBAYEKQQWDXQEBAwFWIxALDiYSFBgNJIg3CM8jAQEBAQYBAQEBHos6hQUHhC0FnxeGaY8EI4I7gVkigngBAQE X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="122193391" Original-Received: from 104-222-126-211.cpe.teksavvy.com (HELO ceviche.home) ([104.222.126.211]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 25 May 2015 18:55:51 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id CA292660EF; Mon, 25 May 2015 18:55:50 -0400 (EDT) In-Reply-To: <55638701.9010400@dancol.org> (Daniel Colascione's message of "Mon, 25 May 2015 13:33:05 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:103167 Archived-At: >>> I think the only reason for this is an implementation detail >>> (lexical-binding is parsed by other code than the other file-local >>> variables). It would be great to make it consistent with other >>> variables so that the user doesn't need to care about the difference. >> Allowing it at the end of the file, would require jumping to the end of >> the file first, and then starting over from the beginning. >> That'd be a very bad requirement. > Why? We're going to have to read that page eventually anyway. Because we can't read the first page correctly until we know whether it should be read in lexical-binding mode or in dynamic-binding mode. Stefan