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: Wed, 25 Sep 2024 14:47:55 -0400 Message-ID: References: <87wmjbmpnt.fsf@moondust.awandering> <867cbbcuen.fsf@gnu.org> <87plp2mhj1.fsf@moondust.awandering> <865xqub7ai.fsf@gnu.org> <86ldzgc7c2.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="27796"; 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 Wed Sep 25 20:48:55 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 1stX4I-00074d-Nz for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Sep 2024 20:48:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stX44-0001o2-Kf; Wed, 25 Sep 2024 14:48:41 -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 1stX40-0001nF-KU for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2024 14:48: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 1stX40-00049m-2J for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2024 14:48:36 -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=br7/pO8XJ0ahdUIfIBkM/wyIhuhLJgo6uWp1ZKRnfbM=; b=eKwu2TtEJMCdNGJekHtD5pXiryfLnCeGpuTD1bUQlCFySQO8k0diBlCUh7/KCBiJ63AAtcToUdiEVGckF0BQl4LAhs8jY0AP/y/ZiW+ZNb7yUhHlNBWXaMlJUspPCjYJwE9XFWPB/X2j/l3629TCLjM96s2jp4rTzsq1YLBWn12ZDsM0y5yv0sAfq6HZyq+MUtEK8CSW4qSS7+Go+NHLw09ogkrPtfVBgn1vCsF1vbUhgWnuGmOQm43i37WmdeMlKKShzV8f7O7ZLNAYo2ea1QTTI6MRpaijFE1tWh+GgMH7kD035+ebKiimnMM2HhG3aTZ8Cbb39l/U0E+fJV8S3Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1stX4Q-0000Ut-3B for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2024 14:49: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: Wed, 25 Sep 2024 18:49: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.17272901111861 (code B ref 73303); Wed, 25 Sep 2024 18:49:02 +0000 Original-Received: (at 73303) by debbugs.gnu.org; 25 Sep 2024 18:48:31 +0000 Original-Received: from localhost ([127.0.0.1]:48642 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stX3v-0000Tw-5L for submit@debbugs.gnu.org; Wed, 25 Sep 2024 14:48:31 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stX3s-0000Tc-C7 for 73303@debbugs.gnu.org; Wed, 25 Sep 2024 14:48:29 -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 1stX3M-0003s5-Mq; Wed, 25 Sep 2024 14:47:56 -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=br7/pO8XJ0ahdUIfIBkM/wyIhuhLJgo6uWp1ZKRnfbM=; b=jUtBOyWSShRl5kj3/wx1 +g6Xzbkq6Kezh9+27YP9+qovZmQnSvhB+EBCbXdVe1GSpz+Iiv747QfJ4W5LuPqVDklC0vjgpV56e XPRegxJ8+6KTyY4PtG5IhdfHcksg7sqoPu5mmV44jq1Vif/p7ywMJs0pHppXsg4n4fnqNjN9D4Lcz XvRPBtVz1PMeFfjfCiU008KqcaxAP+B0Hcc/42+aUG89RevfqNmppLW+2s0pjiO3gWOhJRrItHj6a CWtA9ymqEc4L0R/M7uBRwPmatFb8k0cEjSOpCryeU6wKbee3p54Bar6DywEYsZvWs/rB7MO393l1h lxsVeUw9DlzMlQ==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1stX3L-0000XY-Dw; Wed, 25 Sep 2024 14:47:55 -0400 In-Reply-To: <86ldzgc7c2.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 25 Sep 2024 14:15:41 +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:292413 Archived-At: 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. Andrea