From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.bugs Subject: bug#27674: 26.0.50; cl-progv: strange scoping due to implementation Date: Sat, 15 Jul 2017 15:46:32 -0500 Message-ID: <32552.74010.592567.22890@gargle.gargle.HOWL> References: <87r2xldw4s.fsf@users.sourceforge.net> <874luhf9zw.fsf@drachen> <87o9spdusk.fsf@users.sourceforge.net> <87zic9dtti.fsf@drachen> <87inixdru5.fsf@users.sourceforge.net> <87h8yhdqvq.fsf@drachen> <87fue1dpo7.fsf@users.sourceforge.net> <87lgntfhky.fsf@drachen> <871spkz9gk.fsf@gnu.org> <87mv87t817.fsf@drachen> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1500151638 13129 195.159.176.226 (15 Jul 2017 20:47:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 15 Jul 2017 20:47:18 +0000 (UTC) To: 27674@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 15 22:47:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWTxx-0002YL-5o for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jul 2017 22:47:05 +0200 Original-Received: from localhost ([::1]:43218 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWTxz-0000f0-GN for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jul 2017 16:47:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWTxu-0000eu-Mi for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 16:47:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWTxt-0003IZ-Tk for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 16:47:02 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38011) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dWTxt-0003IQ-PR for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 16:47:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dWTxt-0003yW-JP for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 16:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Roland Winkler" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Jul 2017 20:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27674 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug wontfix Original-Received: via spool by 27674-submit@debbugs.gnu.org id=B27674.150015160114335 (code B ref 27674); Sat, 15 Jul 2017 20:47:01 +0000 Original-Received: (at 27674) by debbugs.gnu.org; 15 Jul 2017 20:46:41 +0000 Original-Received: from localhost ([127.0.0.1]:40688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWTxZ-0003iy-GH for submit@debbugs.gnu.org; Sat, 15 Jul 2017 16:46:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWTxY-0003eY-JX for 27674@debbugs.gnu.org; Sat, 15 Jul 2017 16:46:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWTxS-00031j-Ha for 27674@debbugs.gnu.org; Sat, 15 Jul 2017 16:46:35 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWTxS-00031f-Dm for 27674@debbugs.gnu.org; Sat, 15 Jul 2017 16:46:34 -0400 Original-Received: from [2602:30a:2e52:d720:65b7:1416:12e7:8bfb] (port=54476 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dWTxS-0004ck-26 for 27674@debbugs.gnu.org; Sat, 15 Jul 2017 16:46:34 -0400 In-Reply-To: <87mv87t817.fsf@drachen> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:134600 Archived-At: For the records: Essentially, Michael's examples expand to (let ((x 0)) (let ((fun (lambda () x))) (eval `(let ((x 1)) (funcall ',fun))))) (let ((fun (lambda () x))) (eval `(let ((x 1)) (funcall ',fun)))) With dynamic binding, both examples return 1. With lexical binding, the compiler complains about reference to free variable `x' in the 1st line of the 2nd example. Then, the 1st example returns 0, the 2nd example returns 1.