From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Mark A. Hershberger" Newsgroups: gmane.emacs.bugs Subject: bug#46159: 28.0.50; lexical-let does not work with returned closures on nativecomp Date: Thu, 28 Jan 2021 13:20:43 -0800 (PST) Message-ID: <1144717282.396780.1611868843667.JavaMail.zimbra@nichework.com> References: <87h7n0akli.fsf@everybody.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1158"; mail-complaints-to="usenet@ciao.gmane.io" To: Andrea Corallo , 46159@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 28 22:21:57 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 1l5Ejj-0000CK-V7 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Jan 2021 22:21:56 +0100 Original-Received: from localhost ([::1]:51828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5Eji-0006XR-2b for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Jan 2021 16:21:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5Eit-0005lH-4z for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2021 16:21:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38887) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5Eis-0007nm-F9 for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2021 16:21:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l5Eis-0004tx-Au for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2021 16:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Mark A. Hershberger" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Jan 2021 21:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46159 X-GNU-PR-Package: emacs Original-Received: via spool by 46159-submit@debbugs.gnu.org id=B46159.161186885118798 (code B ref 46159); Thu, 28 Jan 2021 21:21:02 +0000 Original-Received: (at 46159) by debbugs.gnu.org; 28 Jan 2021 21:20:51 +0000 Original-Received: from localhost ([127.0.0.1]:50432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5Eih-0004t8-5G for submit@debbugs.gnu.org; Thu, 28 Jan 2021 16:20:51 -0500 Original-Received: from nospam.nichework.com ([206.71.169.33]:39102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5Eid-0004sr-5G for 46159@debbugs.gnu.org; Thu, 28 Jan 2021 16:20:48 -0500 Original-Received: from localhost (localhost.localdmain [127.0.0.1]) by nospam.nichework.com (Postfix) with ESMTP id 3534FB004E; Thu, 28 Jan 2021 16:19:30 -0500 (EST) Authentication-Results: nospam; dmarc=none header.from=nichework.com Authentication-Results: nospam.nichework.com; dkim=pass reason="2048-bit key; insecure key" header.d=nichework.com header.i=@nichework.com header.b=wXdJmjNr; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at nospam.nichework.com Original-Received: from nospam.nichework.com ([127.0.0.1]) by localhost (nospam.nichework.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Kf7QdfuH4BHJ; Thu, 28 Jan 2021 16:19:29 -0500 (EST) Original-Received: from mail.nichework.com (mail.nichework.com [108.161.151.158]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by nospam.nichework.com (Postfix) with ESMTPS id 2B773B0043; Thu, 28 Jan 2021 16:19:29 -0500 (EST) Authentication-Results: nospam; dmarc=none header.from=nichework.com Original-Received: from mail.nichework.com (localhost.localdomain [127.0.0.1]) by mail.nichework.com (Postfix) with ESMTPS id F25F54E00F8; Thu, 28 Jan 2021 21:20:43 +0000 (UTC) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.nichework.com (Postfix) with ESMTP id D6DB84E018E; Thu, 28 Jan 2021 21:20:43 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.nichework.com D6DB84E018E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nichework.com; s=897144A4-59D1-11EA-885D-1509A2A44C35; t=1611868843; bh=4uC8LOnHtaaFr7XD8mZ3Rdbqt6eXm/8zmzj8OpueCn8=; h=Date:From:To:Message-ID:MIME-Version; b=wXdJmjNr8ZZ7w9vVdxWcjBgHAOBEgWIKMGBcw/X6VcTcz6SaL825eEfRLWCPp5hCc EAJtA7JadgvCyo7cXPhVPB2T5BuBy7e+/CNgP8DRKGS8scoFjTGv4l7UQ+jzRYzPYP m2fverHlXIW8NnbszgPv2XthftMUqywjah8AkIif8dtidXsX4Ia8SRkDpcJW7b1d+y FjDib7UDXXErYmHYa7TB3JRKdIEFCIlBtNcbID37XaaPZ7UjvMkTzPUKLUHcyPELRy N60jqoW+dvVAtGKJlMzLHGmhbjm14dX8vJIKMkq6tPIhGHfda75duSnpRuurRcTnTC dbccOoqNv4weg== Original-Received: from mail.nichework.com ([127.0.0.1]) by localhost (mail.nichework.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id HLComNlqKY6a; Thu, 28 Jan 2021 21:20:43 +0000 (UTC) Original-Received: from mail.nichework.com (localhost.localdomain [127.0.0.1]) by mail.nichework.com (Postfix) with ESMTP id C04564E00F8; Thu, 28 Jan 2021 21:20:43 +0000 (UTC) In-Reply-To: X-Originating-IP: [209.253.11.94] X-Mailer: Zimbra 8.8.15_GA_3980 (ZimbraWebClient - FF87 (Linux)/8.8.15_GA_3980) Thread-Topic: bug#46159: 28.0.50; lexical-let does not work with returned closures on nativecomp Thread-Index: g2BkkP3Df4wJFeDx3/YlBcgWJQLy0A== 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:198823 Archived-At: Thank you for asking the dumb question. I thought it was there because I got warnings about cl being deprecated, bu= t when I put (require 'cl) just before this function, suddenly it worked. Strange that it breaks on the native-comp branch but not on master. ----- On Jan 28, 2021, at 3:57 PM, Andrea Corallo akrl@sdf.org wrote: > mah--- via "Bug reports for GNU Emacs, the Swiss army knife of text > editors" writes: >=20 >> I previously filed #45056 but the problem seemed to be fixed. >> >> It has re-appeared and I just noticed some interesting messages in my >> *Warnings* buffer that appear to be relevant. >> >> Specifically: >> >> Warning (comp): init.el:164:39: Warning: =E2=80=98(post-cmd post-cmd= )=E2=80=99 is a malformed >> function >> Warning (comp): init.el:181:59: Warning: reference to free variable = =E2=80=98rsync-buff=E2=80=99 >> >> That section of code has this function: >> >> (defun mah/firestarter-sentinel (host post-cmd) >> "Sentinal function that will run the POST-CMD on HOST." >> (lexical-let ((post-cmd post-cmd) >> =09=09 (host host) >> =09=09 (rsync-buff (get-buffer-create mah/rsync-buff-name))) >> (lambda (proc event-type) >> (message (concat "post cmd: " post-cmd "\nevent: " event-type)) >> (cond ((string-equal event-type "finished\n") >> =09 (if post-cmd >> =09=09 (progn (message (concat "rsync finished, running " >> =09=09=09=09=09 post-cmd)) >> =09=09=09 (mah/firestarter-do-post host post-cmd rsync-buff)) >> =09 (message "rsync finshed"))) >> =09 (t (if post-cmd >> =09=09 (progn (message (concat "rsync didn't finish normally, " >> =09=09=09=09=09 "running anyway. Check " >> =09=09=09=09=09 mah/rsync-buff-name)) >> =09=09=09 (mah/firestarter-do-post host post-cmd rsync-buff)) >> =09=09 (message "rsync finshed with errors"))))))) >> >> I just compiled emacs from master and it did not exhibit the same behavi= or >=20 > Hi, >=20 > do we have a reproducer? Where is possible to see the whole file being > compiled? >=20 > Could you post all the warning in the *Async-native-compile-log* emitted > compiling init.el? >=20 > Dumb question: is this file requiring all necessary libraries (ex > =E2=80=98cl.el=E2=80=99)? >=20 > Thanks! >=20 > Andrea