From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#26073: workaround Date: Sun, 19 Mar 2017 20:49:51 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1489971016 18143 195.159.176.226 (20 Mar 2017 00:50:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Mar 2017 00:50:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 26073@debbugs.gnu.org To: Paul Pogonyshev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 20 01:50:11 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 1cplWP-0003bq-JI for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Mar 2017 01:50:05 +0100 Original-Received: from localhost ([::1]:58759 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cplWV-0004rj-CV for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Mar 2017 20:50:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cplWP-0004qU-Qg for bug-gnu-emacs@gnu.org; Sun, 19 Mar 2017 20:50:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cplWM-0005qq-Lt for bug-gnu-emacs@gnu.org; Sun, 19 Mar 2017 20:50:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37487) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cplWM-0005qc-Iv for bug-gnu-emacs@gnu.org; Sun, 19 Mar 2017 20:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cplWM-0004QB-4t for bug-gnu-emacs@gnu.org; Sun, 19 Mar 2017 20:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Mar 2017 00:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26073 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26073-submit@debbugs.gnu.org id=B26073.148997100116984 (code B ref 26073); Mon, 20 Mar 2017 00:50:02 +0000 Original-Received: (at 26073) by debbugs.gnu.org; 20 Mar 2017 00:50:01 +0000 Original-Received: from localhost ([127.0.0.1]:35686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cplWK-0004Pr-US for submit@debbugs.gnu.org; Sun, 19 Mar 2017 20:50:01 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:22893) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cplWJ-0004Pf-Lz for 26073@debbugs.gnu.org; Sun, 19 Mar 2017 20:50:00 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0C/CgAYJs9Y/yTkr2xcGwEBAQMBAQEJAQEBg1FBihWFeZBmKQGXJ4YcBAICgwBEFAECAQEBAQEBAWsohRYBBAFWIwULCzQSFBgNJIoLCLRrij0BAQEBBgImiz2KOQEEnE2UJohkhmSSFIFENiGBBCMWCCyHNCSKPwEBAQ X-IPAS-Result: A0C/CgAYJs9Y/yTkr2xcGwEBAQMBAQEJAQEBg1FBihWFeZBmKQGXJ4YcBAICgwBEFAECAQEBAQEBAWsohRYBBAFWIwULCzQSFBgNJIoLCLRrij0BAQEBBgImiz2KOQEEnE2UJohkhmSSFIFENiGBBCMWCCyHNCSKPwEBAQ X-IronPort-AV: E=Sophos;i="5.36,191,1486443600"; d="scan'208";a="295827612" Original-Received: from 108-175-228-36.dsl.teksavvy.com (HELO ceviche.home) ([108.175.228.36]) by smtp.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 19 Mar 2017 20:49:52 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id DAF27661C2; Sun, 19 Mar 2017 20:49:51 -0400 (EDT) In-Reply-To: (Paul Pogonyshev's message of "Sun, 19 Mar 2017 20:31:58 +0100") 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:130741 Archived-At: > Attached patch is a workaround for the bug. It adds special handling > of lambdas to `cl--sm-macroexpand', similar to the way it handles > `let'. However, there is an unhandled case of "binding" symbols to > forms. I'm also not sure what would be correct behavior in old > non-lexical-scope code (do we still care?). Hmm... I'm wondering why generator.el uses cl-symbol-macrolet like that, but indeed the precise behavior of cl-symbol-macrolet is currently a bit fishy. Stefan