From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.bugs Subject: bug#51982: Erroneous handling of local variables in byte-compiled nested lambdas Date: Sat, 20 Nov 2021 21:53:01 +0100 Message-ID: References: <87y25jo2q1.fsf@web.de> <29C3A3F8-CD9F-4AF2-A731-3304FC30E380@acm.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000075852505d13e9494" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39778"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Heerdegen , Stefan Monnier , 51982@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 20 21:54:09 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1moXNB-000AD4-20 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Nov 2021 21:54:09 +0100 Original-Received: from localhost ([::1]:39388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1moXN9-0002WT-Uz for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Nov 2021 15:54:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51630) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moXN4-0002WL-Bg for bug-gnu-emacs@gnu.org; Sat, 20 Nov 2021 15:54:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60431) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1moXN4-00062t-39 for bug-gnu-emacs@gnu.org; Sat, 20 Nov 2021 15:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1moXN3-0007EY-Tm for bug-gnu-emacs@gnu.org; Sat, 20 Nov 2021 15:54:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Nov 2021 20:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51982 X-GNU-PR-Package: emacs Original-Received: via spool by 51982-submit@debbugs.gnu.org id=B51982.163744160227750 (code B ref 51982); Sat, 20 Nov 2021 20:54:01 +0000 Original-Received: (at 51982) by debbugs.gnu.org; 20 Nov 2021 20:53:22 +0000 Original-Received: from localhost ([127.0.0.1]:43744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moXMQ-0007DW-65 for submit@debbugs.gnu.org; Sat, 20 Nov 2021 15:53:22 -0500 Original-Received: from mail-ed1-f54.google.com ([209.85.208.54]:37678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moXMM-0007DD-Gp for 51982@debbugs.gnu.org; Sat, 20 Nov 2021 15:53:20 -0500 Original-Received: by mail-ed1-f54.google.com with SMTP id e3so58150129edu.4 for <51982@debbugs.gnu.org>; Sat, 20 Nov 2021 12:53:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qS9uOutmtDQBuN8AIb5J4n7iTsA+fgSz5BvxzDXlAHo=; b=CCnbH36cpZ2fyb+R47kJ9PeL4cTITWMrpyyIfqkv19UV1rs1uH7S3hoRk5WaNmcNYX btvPb451xk/6vLKyOLvmYkFyrv/+ue891n/tG1/4tbLbm6V04u52X049xd9GAreTQnvC dOOkBTPxblThZ8NN+HCMn3Rc7X0Olcl50NHLAKc8EpxZZIkBeMb18miJfl2BGTM4o/uZ gURxK3l37TY+HHHzhstvjdKA7uyFHqQcJDCqCdUJ09+zEkXZz/w3I+qIuDMkmicKPpKn hredGQBOJXH1TOgBliZb7BtHCgDLJcv/6aYg1iKxmu4wRMhxL1f/3nbiX9nSaqOnas3t vC9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qS9uOutmtDQBuN8AIb5J4n7iTsA+fgSz5BvxzDXlAHo=; b=1WUUgBAh5sJhOXKms0DQy6ebVTQfdcyekba9V/TnTrJ6yBM6zeolB4DCqOm3iFrX5o wpe0QUKWuqL2Fpl2TsM3k/A6CXpSwTGLMrDVY19MD/+augkW/iT1+yOQrFJpddaiv4gn hIVixGoV6s2dkUV6YB848VKdJxDzoSbbsIFNTYvPJgW6ioAswy+hy5Y1qnZjk7sEpfgH W2kyx+jVu6hPbccHN1sQ6izO1vvTtiDnASJkBWwG2hTXdKxzIzGWRd9wcgAF3MbPF47c ZmyrpdFOLOlWGGl4F4MROFH1/4RS2E5aB4+QXh0arsLublF7WGOGI5lZWdvELfIX3FJA lt6w== X-Gm-Message-State: AOAM532e3ueBH0Z+FYeZJ7UYVm4BJUmpj71qlT2GM1Uh8cph299XSST0 K6BgYpM3kf9om94sI+raU2PcUFJ/mxt9pkDAww== X-Google-Smtp-Source: ABdhPJwUnP4M1V8s7eA8ttpDr4BzV5vu4kwsprWlDukm8QKWwwWp75LUTz+Dg5PNoYp8Iaexvbej+Ul3Jq9l4pG0ISw= X-Received: by 2002:a05:6402:5208:: with SMTP id s8mr42727721edd.394.1637441592459; Sat, 20 Nov 2021 12:53:12 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:220521 Archived-At: --00000000000075852505d13e9494 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for the fix. I'm sure in 2025 it will be released. On Sat, 20 Nov 2021 at 19:34, Mattias Engdeg=C3=A5rd wro= te: > 20 nov. 2021 kl. 18.22 skrev Paul Pogonyshev : > > > > you cannot count on an eventual fix to be back-ported to Emacs 28 > > > > Uh, it's not even released yet. Are the stabilization rules so strict > that even a *fix* cannot go in? Unless it is going to be a rewrite of hal= f > the file... > > Sorry, I'd love to have it in 28 but I don't make the rules. > > Meanwhile, here's a lightly tested attempt at a fix. I'm not very > satisfied by it because it forces an up-front access of a captured > variable; I'd rather sink it to each application of the =CE=BB-lifted fun= ction. > > --00000000000075852505d13e9494 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for the fix. I'm sure in 2025 it will be releas= ed.

On Sat, 20 Nov 2021 at 19:34, Mattias Engdeg=C3=A5rd <mattiase@acm.org> wrote:
20 nov. 2021 kl. 18.22 skrev Paul Pogo= nyshev <pogony= shev@gmail.com>:

> > you cannot count on an eventual fix to be back-ported to Emacs 28=
>
> Uh, it's not even released yet. Are the stabilization rules so str= ict that even a *fix* cannot go in? Unless it is going to be a rewrite of h= alf the file...

Sorry, I'd love to have it in 28 but I don't make the rules.

Meanwhile, here's a lightly tested attempt at a fix. I'm not very s= atisfied by it because it forces an up-front access of a captured variable;= I'd rather sink it to each application of the =CE=BB-lifted function.<= br>
--00000000000075852505d13e9494--