From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: esabof@gmail.com Newsgroups: gmane.emacs.help Subject: Re: Help with lexical binding Date: Sat, 10 Aug 2013 11:34:12 -0700 (PDT) Message-ID: <5d63f8e1-734e-4e4a-9777-6e4192ca0d77@googlegroups.com> References: <1871e223-ab70-4e30-9aef-1297a89aa47f@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1376159715 24003 80.91.229.3 (10 Aug 2013 18:35:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Aug 2013 18:35:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 10 20:35:17 2013 Return-path: Envelope-to: geh-help-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 1V8E0T-0000tj-Gi for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Aug 2013 20:35:17 +0200 Original-Received: from localhost ([::1]:36413 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8E0T-0007SV-31 for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Aug 2013 14:35:17 -0400 X-Received: by 10.224.7.7 with SMTP id b7mr18147271qab.5.1376159652158; Sat, 10 Aug 2013 11:34:12 -0700 (PDT) X-Received: by 10.49.13.169 with SMTP id i9mr496956qec.18.1376159652101; Sat, 10 Aug 2013 11:34:12 -0700 (PDT) Original-Path: usenet.stanford.edu!f7no1822422qan.0!news-out.google.com!he10ni1415qab.0!nntp.google.com!fx3no1912277qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: <1871e223-ab70-4e30-9aef-1297a89aa47f@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=86.3.182.83; posting-account=hvyt3AoAAAAdOSTOoji20fUtIaG9BH0F Original-NNTP-Posting-Host: 86.3.182.83 User-Agent: G2/1.0 Injection-Date: Sat, 10 Aug 2013 18:34:12 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:200546 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92813 Archived-At: On Saturday, August 10, 2013 7:06:24 PM UTC+1, esa...@gmail.com wrote: > It will also work if I use `eval-last-sexp' instead of `eval-buffer'. Evidently `eval-buffer' ignores the buffer local value of `lexical-binding', and is only sensitive to the first line (I had scratch comments in the beginning, that's why it didn't work). Might it be better to use the buffer-local value, unless a file-local variable exists? In any case, I think this peculiarity is worth documenting. Evgeni