From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 11 09:16:31 2013 Received: (at submit) by debbugs.gnu.org; 11 Aug 2013 13:16:31 +0000 Received: from localhost ([127.0.0.1]:52902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V8VVV-0005bl-BZ for submit@debbugs.gnu.org; Sun, 11 Aug 2013 09:16:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60327) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V8VVS-0005bY-C0 for submit@debbugs.gnu.org; Sun, 11 Aug 2013 09:16:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V8VVK-0003dX-EP for submit@debbugs.gnu.org; Sun, 11 Aug 2013 09:16:21 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8VVK-0003dT-BB for submit@debbugs.gnu.org; Sun, 11 Aug 2013 09:16:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8VVG-0004is-JZ for bug-gnu-emacs@gnu.org; Sun, 11 Aug 2013 09:16:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V8VVD-0003ca-VT for bug-gnu-emacs@gnu.org; Sun, 11 Aug 2013 09:16:14 -0400 Received: from mail-qc0-x241.google.com ([2607:f8b0:400d:c01::241]:60005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8VVD-0003cV-Qm for bug-gnu-emacs@gnu.org; Sun, 11 Aug 2013 09:16:11 -0400 Received: by mail-qc0-f193.google.com with SMTP id s1so1536538qcw.8 for ; Sun, 11 Aug 2013 06:16:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=qFB46Q5F+2mFK343uv4xTHJ1He7aNtrisdghjdgl7Lw=; b=FKANLkV7Lku0akcdjiO+fFVLdl6NMNFN2B8/J8DZ4d4i6TeXPt7hZneDDVjw6qsec3 7KeT5rV/MTO9dhzdC7F8BPueYm4qHo3J6TskXFrVxXpt6xSLOPY8HDDEop/ipeadvvJQ 7qLTjHHhml99RJelhTQwJ1d4eIig2wzVSCS/sZouRD7nD17O+V+6LUZ7ZonzuPRf07Hh Xl+3XmuuGaFIUie0ftCnk9tL38jCb4qmVY161XOKp2pNBnnFHm7QfxG+grWoiPAo2H2X sQqwMM//d2gr5OB6GYsLdPCbdyjgKpo0FlEFKDyEHmgqlYgzq17W5VBIqKME5SxCM8WT SMxQ== MIME-Version: 1.0 X-Received: by 10.49.116.70 with SMTP id ju6mr9380205qeb.40.1376226971473; Sun, 11 Aug 2013 06:16:11 -0700 (PDT) Received: by 10.49.48.232 with HTTP; Sun, 11 Aug 2013 06:16:11 -0700 (PDT) Date: Sun, 11 Aug 2013 14:16:11 +0100 Message-ID: Subject: 24.3.50.1; eval-buffer ignores the buffer local value of lexical-binding. From: E Sabof To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=047d7b621fb6c3dd5004e3abcf07 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.7 (--) --047d7b621fb6c3dd5004e3abcf07 Content-Type: text/plain; charset=ISO-8859-1 In emacs -Q: M-: (setq lexical-binding t) paste the following: (funcall (let ((a 5)) (lambda () a))) M-x eval-buffer The error (void-variable a) will be thrown. The snippet will be evaluated correctly, only if one inserts ;; -*- lexical-binding:t -*- on the first line --047d7b621fb6c3dd5004e3abcf07 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
In emacs -Q:

=A0 =A0 M-: (se= tq lexical-binding t)

paste the following:

=A0 =A0 (funcall
=A0 =A0 =A0(let ((a 5))
=A0 =A0 =A0 =A0(lambda ()
=A0 =A0 =A0 =A0 =A0a)))

M-x eval-buffer=
The error (void-variable a) will be thrown.

=
The snippet will be evaluated correctly, only if one inserts=A0
<= div>
=A0 =A0 ;; -*- lexical-binding:t -*-

on= the first line


--047d7b621fb6c3dd5004e3abcf07-- From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 19 11:51:02 2015 Received: (at control) by debbugs.gnu.org; 19 Mar 2015 15:51:02 +0000 Received: from localhost ([127.0.0.1]:53205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YYcis-00007t-FC for submit@debbugs.gnu.org; Thu, 19 Mar 2015 11:51:02 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:60781) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YYcir-00007V-0N for control@debbugs.gnu.org; Thu, 19 Mar 2015 11:51:01 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YYciq-0001iq-P6 for control@debbugs.gnu.org; Thu, 19 Mar 2015 11:51:00 -0400 Date: Thu, 19 Mar 2015 11:51:00 -0400 Message-Id: Subject: control message for bug 15070 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) merge 20139 15070 From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 07 11:25:39 2019 Received: (at 15070) by debbugs.gnu.org; 7 Oct 2019 15:25:39 +0000 Received: from localhost ([127.0.0.1]:48854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHUtG-0005db-Lv for submit@debbugs.gnu.org; Mon, 07 Oct 2019 11:25:38 -0400 Received: from quimby.gnus.org ([80.91.231.51]:39936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHUtB-0005dH-Gn; Mon, 07 Oct 2019 11:25:33 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iHUt6-000530-GW; Mon, 07 Oct 2019 17:25:30 +0200 From: Lars Ingebrigtsen To: Stefan Monnier Subject: Re: bug#20139: 25.0.50; eval-buffer ignores lexical-binding References: <87d2466jr3.fsf@loki.jorgenschaefer.de> <87bnjpgvje.fsf@yahoo.fr> Date: Mon, 07 Oct 2019 17:25:28 +0200 In-Reply-To: (Stefan Monnier's message of "Thu, 19 Mar 2015 10:15:29 -0400") Message-ID: <87sgo460if.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: >> IOW eval-buffer obeys the "file"-local variable by calling >> specbind (Qlexical_binding, lisp_file_lexically_bound_p (buf) ? >> Qt : Qnil); >> while eval-region simply uses the current value of le [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15070 Cc: Jorgen =?utf-8?Q?Sch=C3=A4fer?= , Nicolas Richard , 20139@debbugs.gnu.org, 15070@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Monnier writes: >> IOW eval-buffer obeys the "file"-local variable by calling >> specbind (Qlexical_binding, lisp_file_lexically_bound_p (buf) ? >> Qt : Qnil); >> while eval-region simply uses the current value of lexical-binding. > > Indeed, and I don't think we can easily change either of these. > Jorgen, what is the original problem you're trying to solve? So `eval-buffer' ignores the buffer-local value of `lexical-binding', and that's a feature. So I think we should just document that? I've now done so in Emacs 27. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 07 11:25:45 2019 Received: (at control) by debbugs.gnu.org; 7 Oct 2019 15:25:45 +0000 Received: from localhost ([127.0.0.1]:48857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHUtN-0005dx-36 for submit@debbugs.gnu.org; Mon, 07 Oct 2019 11:25:45 -0400 Received: from quimby.gnus.org ([80.91.231.51]:39954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHUtI-0005dX-OX for control@debbugs.gnu.org; Mon, 07 Oct 2019 11:25:41 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iHUtD-00053B-BY for control@debbugs.gnu.org; Mon, 07 Oct 2019 17:25:37 +0200 Date: Mon, 07 Oct 2019 17:25:34 +0200 Message-Id: <87r23o60i9.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #15070 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 15070 fixed close 15070 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 15070 fixed close 15070 27.1 quit From unknown Sat Aug 16 18:38:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 05 Nov 2019 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator