From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#73303: 30.0.91; Native compiler repeatedly interrupts at random moments Date: Tue, 22 Oct 2024 12:29:49 -0400 Message-ID: References: <87wmjbmpnt.fsf@moondust.awandering> <867cbbcuen.fsf@gnu.org> <87plp2mhj1.fsf@moondust.awandering> <865xqub7ai.fsf@gnu.org> <86ldzgc7c2.fsf@gnu.org> <86a5f0mvdg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7025"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: philipk@posteo.net, njackson@posteo.net, 73303@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 22 18:30:51 2024 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 1t3HmU-0001YE-MC for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 22 Oct 2024 18:30:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3HmI-0006QY-VR; Tue, 22 Oct 2024 12:30:38 -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 1t3HmE-0006Oj-MT for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2024 12:30:37 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t3HmE-00042B-Ci for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2024 12:30:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=OdP57IMdjwjC1fb0rAHtrBwLkm/rkdDpNBuLOdsfy7Q=; b=OrM90dpHYD5sUdjdZmWxNgJl9Gfx1q42xcSEcX/vG3h5z4BqF57TZMGnh58fmj/186lIQgvcBVax7C6bwsiCtVfkA4ppP9lS+O1SC/pMODeX4FAHPVo6zEQjEvkTdIVIar0cYPp5KuSJaioWZtUJJcw+eirO/oGkq7k+ai2lCxKrcPrr/3NtjXSoJhQjzJ6b+U5awqEjmTzdL7HZnVUYu/EYm2AlqSP7a1I/BpYPXPovTwsfKbV0UaydaGfPmOyDtcTek/fbZT6bo5S+DmlwHIx9cU75EipR72y8ZyLkNNrxWrX96W+AnH2+QNzj9iV2tj4MDUcWoRZ/7Cxy2Cpxww==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t3Hmg-0003Ts-Df for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2024 12:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Oct 2024 16:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73303 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 73303-submit@debbugs.gnu.org id=B73303.172961465513366 (code B ref 73303); Tue, 22 Oct 2024 16:31:02 +0000 Original-Received: (at 73303) by debbugs.gnu.org; 22 Oct 2024 16:30:55 +0000 Original-Received: from localhost ([127.0.0.1]:57017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3HmZ-0003TW-3J for submit@debbugs.gnu.org; Tue, 22 Oct 2024 12:30:55 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40026) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3HmW-0003Rn-DM for 73303@debbugs.gnu.org; Tue, 22 Oct 2024 12:30:53 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t3Hlx-0003yi-D7; Tue, 22 Oct 2024 12:30:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=OdP57IMdjwjC1fb0rAHtrBwLkm/rkdDpNBuLOdsfy7Q=; b=E1so7Xj/QRabvMRbP2nC dkae9X7T7UBvqoSTFCwxjPpkUEAAlUj59dx+sJEY9ENqi6snpw9Rhq7AAtNsLAa9ELXczxeT9ndet NyRshJAeq/qigfs5uC6FY0BGrtuERE4EQslzB/G0o4svU8xfHmQKfmYL/j3QTEDaqH8Z4KgzbIDd3 4fN/OyIPHQsB6F7bIxieuKYuDcCEGiX+VNLjFyJuQWAOICplWRhGiruUcgo7hR/To0sCHy+K07m0V yMwOG/sO/eB1gBpUysWcWBWoRvkacADKicqehLnOyevjwrG9Sxot/9ZUHOuvq7bXPsQwr4LHVZYgl 0I/QJn2NZtd0Dw==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1t3HlW-0004Zo-Cl; Tue, 22 Oct 2024 12:30:15 -0400 In-Reply-To: <86a5f0mvdg.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 19 Oct 2024 09:58:51 +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:294116 Archived-At: Eli Zaretskii writes: >> From: Andrea Corallo >> Cc: njackson@posteo.net, philipk@posteo.net, 73303@debbugs.gnu.org >> Date: Wed, 25 Sep 2024 14:47:55 -0400 >> >> Eli Zaretskii writes: >> >> >> From: Andrea Corallo >> >> Cc: "N. Jackson" , Philip Kaludercic >> >> , 73303@debbugs.gnu.org >> >> Date: Tue, 24 Sep 2024 15:10:10 -0400 >> >> >> >> Eli Zaretskii writes: >> >> >> >> > If your init file arranges for many packages to load only on demand, >> >> > then I don't think there is a way, except summarily compile all the >> >> > packages under your ~/.emacs.d/ directory (assuming that's where you >> >> > install them). Maybe we should have a native-compile-directory >> >> > function to make that easier; currently we only have >> >> > emacs-lisp-native-compile, which compiles a single file. Andrea, >> >> > WDYT? >> >> >> >> Yes we could do that if we think is useful, is probably few lines like: >> >> >> >> (defun native-compile-directory (directory) >> >> (mapc (lambda (file) >> >> (native-compile file)) >> >> (directory-files-recursively directory ".+\\.el$"))) >> >> >> >> but this will recompile all files, so maybe to make it useful for .emacs >> >> we should have something that compiles files only when the corresponding >> >> eln is not already present? >> > >> > Yes, that would be better. But the test is not very trivial, because >> > the .eln file can be in another directory, somewhere on >> > native-comp-eln-load-path, and there's the issue of the right version >> > and hash. Maybe we should have a find-eln-file function to do that? >> >> Yep, just looping on `native-comp-eln-load-path` using >> `comp-el-to-eln-rel-filename` should do the job. Okay I'll try to put >> together a patch. > > Ping! Hi Eli, with 246d68bd2a5 I added an implementation of 'native-compile-directory' which I believe does what we wanted here. Please have a look and feel free to suggest or improve. Thanks! Andrea