From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ryan Newsgroups: gmane.emacs.bugs Subject: bug#15616: 24.3; Setting lexical-binding in file's local variables block should trigger a warning Date: Tue, 15 Oct 2013 10:17:51 -0700 Message-ID: <525D78BF.50602@thompsonclan.org> References: <525C8F0A.6020104@thompsonclan.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1381857557 3554 80.91.229.3 (15 Oct 2013 17:19:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Oct 2013 17:19:17 +0000 (UTC) Cc: 15616@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 15 19:19:20 2013 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 1VW8HA-0007Dh-11 for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Oct 2013 19:19:20 +0200 Original-Received: from localhost ([::1]:43176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VW8H9-0004xY-7q for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Oct 2013 13:19:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VW8Gz-0004xN-H0 for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2013 13:19:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VW8Gs-0002Ud-79 for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2013 13:19:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37746) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VW8Gs-0002UT-3W for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2013 13:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VW8Gr-0003Lx-JN for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2013 13:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ryan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Oct 2013 17:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15616 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15616-submit@debbugs.gnu.org id=B15616.138185748412810 (code B ref 15616); Tue, 15 Oct 2013 17:19:01 +0000 Original-Received: (at 15616) by debbugs.gnu.org; 15 Oct 2013 17:18:04 +0000 Original-Received: from localhost ([127.0.0.1]:51761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VW8Fw-0003KX-H0 for submit@debbugs.gnu.org; Tue, 15 Oct 2013 13:18:04 -0400 Original-Received: from mail-pb0-f48.google.com ([209.85.160.48]:52968) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VW8Ft-0003K3-Pq for 15616@debbugs.gnu.org; Tue, 15 Oct 2013 13:18:02 -0400 Original-Received: by mail-pb0-f48.google.com with SMTP id ma3so9036884pbc.35 for <15616@debbugs.gnu.org>; Tue, 15 Oct 2013 10:17:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=sNoZodz9sLZaOb6I6J3V0yoGIm1/iNw7lsnDyLnAgpI=; b=lZ7XDYKXXuj1CMmEZZvmKdEQxWAm1Biw6DePGSVsYJq+I2ybUJVOC7KaJvogGNWEPm c34TRxSd1Nsqqg/8xcBvas9DK/Frvyh4byglgz9MWfOTjSTPas2N2p7pKct/W9Buen7T kQ+IhOuCEZOEhPB2/UXUyPYQztbjE54aAB3fE/M0qOkXiCV+F9jjxiHu6noNbcoBWGMk 56mnWq6VOjxt0scHxhid6lISpn5Qgxin2NwigXX+e3vDdmS/Gjv77PUeVWIdgiAOKoii ahCYgHHMtA7MBrUuWI4sdb/+ExfG31QemTkZQwhFPHMK4Zuwm6SFX3GHJbI3VLNjO4PM Tlfg== X-Gm-Message-State: ALoCoQntey91dkZoRPeeb4eMYMIPha6heAjyKG2+AY4IM12bTQtbDF7A8YmK7pBygom9FK027I8/ X-Received: by 10.69.15.197 with SMTP id fq5mr2653513pbd.179.1381857475768; Tue, 15 Oct 2013 10:17:55 -0700 (PDT) Original-Received: from [192.168.10.2] (user-0c9ha1q.cable.mindspring.com. [24.152.168.58]) by mx.google.com with ESMTPSA id xv2sm85758404pbb.39.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 15 Oct 2013 10:17:54 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: 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:79280 Archived-At: Actually, my testing indicates that the documentation is inaccurate: lexical-binding can be set via either the first line or a local variables block, and it will take effect in both cases when the file is compiled. This is on version 24.3.1. So I guess the documentation just needs to be updated. On Mon Oct 14 20:22:32 2013, Stefan Monnier wrote: >> When compiling and/or loading an emacs lisp file that sets lexical-binding >> in a local variables section rather than in the first line of the >> file, a warning should be shown informing that the setting will have no >> effect. > > Agreed, patch welcome, > > > Stefan