From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aaron Jensen Newsgroups: gmane.emacs.bugs Subject: bug#46617: 28.0.50; nativecomp: native compile cache is not invalidated when file is re-byte compiled and changes Date: Sun, 21 Mar 2021 19:44:45 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19382"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46617@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 22 01:46:13 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 1lO8hw-0004vx-VW for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Mar 2021 01:46:12 +0100 Original-Received: from localhost ([::1]:41646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lO8hv-0006d3-P5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Mar 2021 20:46:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO8hm-0006cp-Mf for bug-gnu-emacs@gnu.org; Sun, 21 Mar 2021 20:46:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44177) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lO8hm-0007DD-D5 for bug-gnu-emacs@gnu.org; Sun, 21 Mar 2021 20:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lO8hm-00071z-AJ for bug-gnu-emacs@gnu.org; Sun, 21 Mar 2021 20:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Aaron Jensen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Mar 2021 00:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46617 X-GNU-PR-Package: emacs Original-Received: via spool by 46617-submit@debbugs.gnu.org id=B46617.161637390626942 (code B ref 46617); Mon, 22 Mar 2021 00:46:02 +0000 Original-Received: (at 46617) by debbugs.gnu.org; 22 Mar 2021 00:45:06 +0000 Original-Received: from localhost ([127.0.0.1]:55723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lO8gs-00070U-1H for submit@debbugs.gnu.org; Sun, 21 Mar 2021 20:45:06 -0400 Original-Received: from mail-yb1-f178.google.com ([209.85.219.178]:46730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lO8gn-0006zh-RN for 46617@debbugs.gnu.org; Sun, 21 Mar 2021 20:45:05 -0400 Original-Received: by mail-yb1-f178.google.com with SMTP id 8so4789231ybc.13 for <46617@debbugs.gnu.org>; Sun, 21 Mar 2021 17:45:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RF8TNomgCGrTH/sbcSKFW2/OhIlSjajhuvBz/HudXUE=; b=B8/lrKdQlEindoNPCpzu2PTr9sNKOqwrYquFyX4j4QdTcz1j2CJbmy0POi+6yKgiaZ M/u1GeTYTRjtXBZcFACBpvkmZiZghO+ZhwbD8tAMiccRBw8WCqJL/oOe2UVqJIE1dxOy 1mVsL+s72M2F8iO4iKS7kcfpccPgi7TuOXFbHa/E80AbvAbdBEDFgMdWKZzA4qeu7S/s IGG/NZ/4z4YDaML9NrMx49cp/gu8bLhExBfQTGCDQP0e4pRrAoZijg7LRP7nubQCwbp+ ehtRjM7VU3DbQO7y06QD7WqZeTNZb+Ok8kaRoTCEWWLb7cLjYdXaAOPtAbCpBALS2XPK vtuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RF8TNomgCGrTH/sbcSKFW2/OhIlSjajhuvBz/HudXUE=; b=UEIf4UB+rM3BIa0cDiwwS6JTFSn2JsacqvuQRLxREgrlLhPlclhJcEVVxBBlQjY925 aNEcod97Uud06UR2FfLAwsdrpLH5+6wJ6qXNquhWqe3+4XOR21wRTWYs4v/0nLXhmIMs StLgbae8b0gh6nEQEDSgybhZAIjLrdp88YsEfGP2uRtKRZinbPbol7LdNoz+ydzSVj7B lTWqPYheXMnubGyDdo8JBBqqKkSzNE84kc7WTBg8sIB1LD8XDXAStwkC5NXox1D8ujYz PGltRJm3qlulpI2vShN99FpAMtPqxkESza7WYG5/Eq7VQbmNQQEKoCCgW87yQLXigaac WtIA== X-Gm-Message-State: AOAM5307LvJK/ibsVV922p0rD3/OigzzFjX+lWa5TFje9Tsx0B1ERGxX 21jiM/cuQg5ioWezreYI4Xngt6ElpKPXxZkfiN0= X-Google-Smtp-Source: ABdhPJyxl51iMARr2TUAmLqTdIgRiPly39JfFw9j5kOdfbIi3S89Ivs/3sM3k8lWL/5RNCGyn40t33WNaMws2QNEVis= X-Received: by 2002:a25:d28b:: with SMTP id j133mr19722765ybg.517.1616373896207; Sun, 21 Mar 2021 17:44:56 -0700 (PDT) In-Reply-To: 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:202815 Archived-At: On Sun, Mar 21, 2021 at 3:54 PM Andrea Corallo wrote: > > Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of > text editors" writes: > > > Okay I've added `comp-lookup-eln' son now the user can search if a > certain .eln is in reach in `comp-eln-load-path' for a given .el. > > So now one can use the following to force a native load. > > (load (comp-lookup-eln ".../foo.el")) Okay, and that would return nil if it's not native compiled, which would be their cue to native compile it, yes? That's nice to be able to force load it. Without doing the modification date stuff you mentioned or purge before byte compile, native compilation ends up having to be a concern of anything that's doing byte compiling, which is unfortunate. Ideally Straight.el could just change to doing a (load "foo") after the explicit byte compile and get the automatic async native compilation. They could also do a delete file if the result of comp-lookup-eln exists, prior to or just after byte compiling, then at least they won't have to native compile synchronously. Thanks, Aaron