From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: akrl--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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 20:57:13 +0000 Message-ID: References: <87h7n0akli.fsf@everybody.org> Reply-To: Andrea Corallo 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="18468"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: mah@everybody.org To: 46159@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 28 21:58:44 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 1l5ENI-0004g6-49 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Jan 2021 21:58:44 +0100 Original-Received: from localhost ([::1]:35626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5ENG-0006Qi-F1 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Jan 2021 15:58:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5EMc-0006PQ-SP for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2021 15:58:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38873) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5EMc-0008Ut-Kn for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2021 15:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l5EMc-0004Lw-K9 for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2021 15:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Jan 2021 20:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46159 X-GNU-PR-Package: emacs X-Debbugs-Original-To: mah--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: "Mark A. Hershberger" , 46159@debbugs.gnu.org Original-Received: via spool by 46159-submit@debbugs.gnu.org id=B46159.161186743816657 (code B ref 46159); Thu, 28 Jan 2021 20:58:02 +0000 Original-Received: (at 46159) by debbugs.gnu.org; 28 Jan 2021 20:57:18 +0000 Original-Received: from localhost ([127.0.0.1]:50415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5ELu-0004Ka-6u for submit@debbugs.gnu.org; Thu, 28 Jan 2021 15:57:18 -0500 Original-Received: from mab.sdf.org ([205.166.94.33]:33872 helo=ma.sdf.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5ELs-0004KR-Ax for 46159@debbugs.gnu.org; Thu, 28 Jan 2021 15:57:16 -0500 Original-Received: from akrl by ma.sdf.org with local (Exim 4.92) (envelope-from ) id 1l5ELp-0005RL-Ec; Thu, 28 Jan 2021 20:57:13 +0000 In-Reply-To: <87h7n0akli.fsf@everybody.org> (mah's message of "Thu, 28 Jan 2021 15:10:33 -0500") 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:198820 Archived-At: mah--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > 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) > (host host) > (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") > (if post-cmd > (progn (message (concat "rsync finished, running " > post-cmd)) > (mah/firestarter-do-post host post-cmd rsync-buff)) > (message "rsync finshed"))) > (t (if post-cmd > (progn (message (concat "rsync didn't finish normally, " > "running anyway. Check " > mah/rsync-buff-name)) > (mah/firestarter-do-post host post-cmd rsync-buff)) > (message "rsync finshed with errors"))))))) > > I just compiled emacs from master and it did not exhibit the same behavior Hi, do we have a reproducer? Where is possible to see the whole file being compiled? Could you post all the warning in the *Async-native-compile-log* emitted compiling init.el? Dumb question: is this file requiring all necessary libraries (ex =E2=80=98cl.el=E2=80=99)? Thanks! Andrea