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: Tue, 26 May 2015 21:49:35 -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 1432691433 16865 80.91.229.3 (27 May 2015 01:50:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 May 2015 01:50:33 +0000 (UTC) Cc: Philipp Stephani , 20640@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 27 03:50:22 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 1YxQU5-0002C9-BW for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 May 2015 03:50:17 +0200 Original-Received: from localhost ([::1]:50923 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxQU4-0006x9-Iw for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 May 2015 21:50:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxQU1-0006ws-2R for bug-gnu-emacs@gnu.org; Tue, 26 May 2015 21:50:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YxQTw-0005RB-3H for bug-gnu-emacs@gnu.org; Tue, 26 May 2015 21:50:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxQTv-0005Qb-W1 for bug-gnu-emacs@gnu.org; Tue, 26 May 2015 21:50:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YxQTu-0004YU-EN for bug-gnu-emacs@gnu.org; Tue, 26 May 2015 21:50:06 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 May 2015 01:50:05 +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.143269138517474 (code B ref 20640); Wed, 27 May 2015 01:50:05 +0000 Original-Received: (at 20640) by debbugs.gnu.org; 27 May 2015 01:49:45 +0000 Original-Received: from localhost ([127.0.0.1]:57566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YxQTZ-0004Xl-94 for submit@debbugs.gnu.org; Tue, 26 May 2015 21:49:45 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:12863) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YxQTW-0004XY-5n for 20640@debbugs.gnu.org; Tue, 26 May 2015 21:49:43 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CYDQA731xV/9N+3mhcgxCEAshgBAICgTw8EQEBAQEBAQGBCkEFg10BAQMBViMFCwsOJhIUGA0kiDcIzyMBAQEBBgEBAQEeizqFBQeELQW1BCOBZlWBWSKCeAEBAQ X-IPAS-Result: A0CYDQA731xV/9N+3mhcgxCEAshgBAICgTw8EQEBAQEBAQGBCkEFg10BAQMBViMFCwsOJhIUGA0kiDcIzyMBAQEBBgEBAQEeizqFBQeELQW1BCOBZlWBWSKCeAEBAQ X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="122335509" 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; 26 May 2015 21:49:36 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id DEC61660ED; Tue, 26 May 2015 21:49:35 -0400 (EDT) In-Reply-To: (Glenn Morris's message of "Tue, 26 May 2015 16:53:08 -0400") 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:103202 Archived-At: > Even if the code were to check for "coding:" (which we already have to > scan the end of the file for) and "lexical-binding:" in the same pass? The check for "coding:" is a misdesign, indeed. I think we should use some utf-8 tell-tale sign at the beginning of *.el files to eliminate the need to check for "coding:" (and to go through load-with-code-conversion) in the normal case. It could be a utf-8 BOM or something like that. Ideally we could give extra meaning to this marker so it not only means "uses utf-8" but also "uses lexical-scoping", so that we can have a future where we don't need to add "lexical-binding:t" to every file. Stefan