From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64494: 30.0.50; Recursive load error with native-compile Date: Fri, 07 Jul 2023 16:18:16 -0400 Message-ID: References: <83ttuhgjpg.fsf@gnu.org> <83sf9zeg2k.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28087"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: germanp82@hotmail.com, 64494@debbugs.gnu.org, acorallo@gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 07 22:19:18 2023 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 1qHrvB-00074l-MU for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Jul 2023 22:19:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHrux-0004fn-Pj; Fri, 07 Jul 2023 16:19:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qHruw-0004fQ-Eg for bug-gnu-emacs@gnu.org; Fri, 07 Jul 2023 16:19:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qHruw-0006PD-76 for bug-gnu-emacs@gnu.org; Fri, 07 Jul 2023 16:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qHruv-00039f-SV for bug-gnu-emacs@gnu.org; Fri, 07 Jul 2023 16:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Jul 2023 20:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64494 X-GNU-PR-Package: emacs Original-Received: via spool by 64494-submit@debbugs.gnu.org id=B64494.168876110612085 (code B ref 64494); Fri, 07 Jul 2023 20:19:01 +0000 Original-Received: (at 64494) by debbugs.gnu.org; 7 Jul 2023 20:18:26 +0000 Original-Received: from localhost ([127.0.0.1]:43858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qHruL-00038r-P4 for submit@debbugs.gnu.org; Fri, 07 Jul 2023 16:18:26 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:21390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qHruJ-00038d-3G for 64494@debbugs.gnu.org; Fri, 07 Jul 2023 16:18:24 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id CEC8D100201; Fri, 7 Jul 2023 16:18:17 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id BAAEC10011D; Fri, 7 Jul 2023 16:18:16 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1688761096; bh=t7RTeO5834kiCnbx2+9x51XnNlJTRdIMFYOpOqx1WVs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Xqg8fHlUwXnbnjNmnBEvxkQMWtwZGJt9h2ZaybyRYyRDtBC2JiXdbBLTOGVudh7HY U3SM+3/B9/FMd0ChQPWBLX/234XeHhBTq9BfXzp7pNa2XMvK9XXP6EXNMYL3xgdXyB f2FmxhLNSRb0C0+OEyAoKgrd+AySZ+alTLIKM9/Urli4z8g6F3pZsosLdmFm68EGwI RIOFa9bs0PlsSLSXEDsQxTcCuoN3L2tjdrFf3CRAe7sYVOhKpYBLiSVRomG3t/5nrp XYjUnMeV3GmkiR52MUKjSUT4YT0ulY0mQWVDt7VbcdGvZaks33C0Ov1engEIOUghCv J4MoNpZ/hLiEw== Original-Received: from pastel (69-165-155-162.dsl.teksavvy.com [69.165.155.162]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 8F278120213; Fri, 7 Jul 2023 16:18:16 -0400 (EDT) In-Reply-To: <83sf9zeg2k.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 07 Jul 2023 21:23:31 +0300") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:264748 Archived-At: > Thanks, but does it allow to put back the change I reverted? I believe so, yes. > It isn't in the patch, so I'm not sure if you tried that. The patch was tested against commit 40492581f9 (i.e. the commit just before the reversion). The way it works is that instead of having the C code call `native--compile-async` (which loads `comp.el`) right in the middle of loading another file, it delays the call to the next time Emacs waits. After all `native--compile-async` doesn't do anything immediately urgent since all it does is schedule a future compilation. There's another thing I don't quite understand about our code here: why do we call `native--compile-async` from `defalias` (via `maybe_defer_native_compilation`) rather than doing it from something like `after-load-functions`? Stefan