From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Davis Herring" Newsgroups: gmane.emacs.devel Subject: Re: another minor lexbind patch Date: Tue, 27 Apr 2010 14:04:23 -0700 (PDT) Message-ID: <60193.130.55.118.19.1272402263.squirrel@webmail.lanl.gov> References: Reply-To: herring@lanl.gov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1272402276 9752 80.91.229.12 (27 Apr 2010 21:04:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Apr 2010 21:04:36 +0000 (UTC) Cc: Emacs discussions To: "Tom Tromey" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 27 23:04:35 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O6rxK-0007nD-MN for ged-emacs-devel@m.gmane.org; Tue, 27 Apr 2010 23:04:34 +0200 Original-Received: from localhost ([127.0.0.1]:44848 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6rxK-0005fk-7G for ged-emacs-devel@m.gmane.org; Tue, 27 Apr 2010 17:04:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6rxE-0005em-Ja for emacs-devel@gnu.org; Tue, 27 Apr 2010 17:04:28 -0400 Original-Received: from [140.186.70.92] (port=46280 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6rxD-0005dp-Hv for emacs-devel@gnu.org; Tue, 27 Apr 2010 17:04:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6rxC-0000IX-1m for emacs-devel@gnu.org; Tue, 27 Apr 2010 17:04:27 -0400 Original-Received: from proofpoint2.lanl.gov ([204.121.3.26]:40482) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6rxB-0000IA-PR for emacs-devel@gnu.org; Tue, 27 Apr 2010 17:04:26 -0400 Original-Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by proofpoint2.lanl.gov (8.14.3/8.14.3) with ESMTP id o3RL4NxS010813; Tue, 27 Apr 2010 15:04:23 -0600 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay1.lanl.gov (Postfix) with ESMTP id 69CDA34572A; Tue, 27 Apr 2010 15:04:23 -0600 (MDT) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay1.lanl.gov Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay1.lanl.gov (Postfix) with ESMTP id 57016345725; Tue, 27 Apr 2010 15:04:23 -0600 (MDT) Original-Received: by webmail1.lanl.gov (Postfix, from userid 48) id 553BB1CA836A; Tue, 27 Apr 2010 15:04:23 -0600 (MDT) Original-Received: from 130.55.118.19 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Tue, 27 Apr 2010 14:04:23 -0700 (PDT) In-Reply-To: User-Agent: SquirrelMail/1.4.8-5.el5_4.10.lanl1 X-Priority: 3 (Normal) Importance: Normal X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-04-27_18:2010-02-06, 2010-04-27, 2010-04-27 signatures=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:124264 Archived-At: > Here's a trivial patch to the lexbind branch to make lexical-binding a > safe local variable. If `lexical-binding' is taken into account other than at read or compilation time, it might not be wise to make it safe: someone could find (old, well-established, well-distributed, commonly-used) code that behaves in some undesirable way if it's non-nil. If it does only affect loading/compiling code in the file where it's set, that's fine, of course: you're already trusting that file if you eval things in it, although I suppose someone could try to write a file that did something evil that wasn't obvious if you read it assuming dynamic binding. Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.