From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#27674: 26.0.50; cl-progv: strange scoping due to implementation Date: Thu, 13 Jul 2017 11:07:47 -0400 Message-ID: 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1499959793 5338 195.159.176.226 (13 Jul 2017 15:29:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 13 Jul 2017 15:29:53 +0000 (UTC) Cc: 27674@debbugs.gnu.org To: Roland Winkler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 13 17:29:46 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 1dVg3i-0000jM-Bs for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Jul 2017 17:29:42 +0200 Original-Received: from localhost ([::1]:60690 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVg3m-0000Me-4M for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Jul 2017 11:29:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVfim-0007aR-Um for bug-gnu-emacs@gnu.org; Thu, 13 Jul 2017 11:08:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVfik-0002Lb-9E for bug-gnu-emacs@gnu.org; Thu, 13 Jul 2017 11:08:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34566) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVfik-0002LO-65 for bug-gnu-emacs@gnu.org; Thu, 13 Jul 2017 11:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dVfik-0004ON-10 for bug-gnu-emacs@gnu.org; Thu, 13 Jul 2017 11:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Jul 2017 15:08: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.149995847616869 (code B ref 27674); Thu, 13 Jul 2017 15:08:01 +0000 Original-Received: (at 27674) by debbugs.gnu.org; 13 Jul 2017 15:07:56 +0000 Original-Received: from localhost ([127.0.0.1]:37243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVfid-0004O1-SS for submit@debbugs.gnu.org; Thu, 13 Jul 2017 11:07:56 -0400 Original-Received: from mail-oi0-f52.google.com ([209.85.218.52]:35859) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVfic-0004No-7N for 27674@debbugs.gnu.org; Thu, 13 Jul 2017 11:07:54 -0400 Original-Received: by mail-oi0-f52.google.com with SMTP id x187so48344925oig.3 for <27674@debbugs.gnu.org>; Thu, 13 Jul 2017 08:07:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=ACOK1cZJ+cJKf5VbLQ3DA49tafA1/ZWcNQE7qKzRZNk=; b=hNyCXRJMutiQ/KEl7cHY3QCGVAxfiKu6ipDQ3VioUZaLnPhK6Y5NhxT1avd+ltEho7 v/jkGuLvteKLn+G7uRMw/VIpBoLhi11o/CC5eM1CoFtIbAs3/QNQU0ZnmmEN4iInUrRf 9jnuaBKeGOkA22yp+8MOquSOsIKu2YWoUgYq9y8LM92QViatq9F9bQMky8u6v64RaEPi LbsX2eBB9V5g1o2TAPgbFIiA/Htwh+DM8Fqtx82+e2mOyLVcU16u229dmTOLU2GL1/Ce EmNgyuBkKoKIeyI40Bf6p70BHxNxcSiq/9nfhKc4WimcMLtJUnVyM8r71g6j8iBGwqxM YLLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=ACOK1cZJ+cJKf5VbLQ3DA49tafA1/ZWcNQE7qKzRZNk=; b=qL38Sl4aKcWsT7iayn0O44gyykaQ74nXOr/URfJP1dNoyfxT9619ClE+ilEwYCP4kw sOIPBilLt7c/AZTq+gZ5hQ5JAXst+bcpt15tsOVEf7ocq0kCgwb+Y5yXINLQzDE7yx97 +3WlzdmIJMYAe/a1wuZgucy+9ZBfFX1OyG0i2jWKdWJN2rPz3p3JrrIQtGbAupyzWKg3 sMW6a5cIIVhapmInC/dKx0ByoVlMNijYDyX5PU57q9rHyp5qcFv6vRaPzSuP51IGqSKI vT8dfc8KmFfmpWZQV5xYDZYpkUcDXTjCMVI9U1TkENt8uu5hftC8tLGJup/CxQNVymDq /isA== X-Gm-Message-State: AIVw112u2K041bKKHp1OfK73zkkcSIu629gIf9kKrkmoqzrER4L+kCho HeW42g2eEjisKXam9N3hDwQko/iASQ== X-Received: by 10.202.83.74 with SMTP id h71mr2773735oib.135.1499958468332; Thu, 13 Jul 2017 08:07:48 -0700 (PDT) Original-Received: by 10.74.113.91 with HTTP; Thu, 13 Jul 2017 08:07:47 -0700 (PDT) In-Reply-To: <871spkz9gk.fsf@gnu.org> X-Google-Sender-Auth: TgD8L4fpGzzpbOiPzcanDM0iVXQ 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:134507 Archived-At: On Thu, Jul 13, 2017 at 10:40 AM, Roland Winkler wrote: > > The docstring of cl-progv says > > Bind SYMBOLS to VALUES dynamically in BODY. > > But I am not sure whether this statement correctly reflects the actual > code of cl-progv: cl-progv evaluates a let form at runtime, but it is > not up to cl-progv to ensure dynamical binding. I believe it depends on > whether lexical binding is on or off whether the code currently used by > cl-progv uses dynamical binding or lexical binding. No, because cl-progv omits the second argument to `eval', which is the same as passing nil. This guarantees the evaluated let-bindings are dynamic bindings. > So it is my ignorant guess that a consistent behavior of cl-progv with > lexical binding on or off requires that the bindings of SYMBOLS to > VALUES is also passed to `eval' as a second arg. Doing this would mean that cl-progv would always bind lexically. We could, in theory, change cl-progv to be that way, but it would be backwards incompatible with previous Emacs versions, and with Common Lisp.