From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master 05d240997a 2/2: Add native-compile-prune-cache command Date: Sat, 23 Jul 2022 09:43:35 +0300 Message-ID: <831qucjpm0.fsf@gnu.org> References: <165675959499.8421.12451308740112322312@vcs2.savannah.gnu.org> <20220702105957.4B7EFC016B5@vcs2.savannah.gnu.org> <87bkthedix.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8330"; mail-complaints-to="usenet@ciao.gmane.io" Cc: akrl@sdf.org, rpluim@gmail.com, emacs-devel@gnu.org, larsi@gnus.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 23 08:46:35 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oF8uI-0001z6-5t for ged-emacs-devel@m.gmane-mx.org; Sat, 23 Jul 2022 08:46:34 +0200 Original-Received: from localhost ([::1]:60612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oF8uH-0007hb-2p for ged-emacs-devel@m.gmane-mx.org; Sat, 23 Jul 2022 02:46:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oF8rW-00062c-64 for emacs-devel@gnu.org; Sat, 23 Jul 2022 02:43:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34582) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oF8rU-0000mA-1R; Sat, 23 Jul 2022 02:43:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=h36b+jqaY5UMOFMp+bsyeCZo+t6I6vg4dki6+KWL4co=; b=Z0iECzP4d619M41zqgdz oI9sqcQlM2avLLV3Ycu9W8o+XB3PZioPTJhhszfzh3//JN+2ClnwF55SrjpyCfJJhg4rgWbOeiH+K diNV3YiTxrKMhiN41+KknMbZu65y6pqv5ISUhYL02c4RMRVc2W+qaYpWLOrVPRcoIPqrs5cTHwKOP qx7wqggsCYx6xohZNpA4Isz8xC1Y8pL7zj4J9AFp07Z2MgzcvEBSfYNFmedwcswiTDSEiwCgdCeMC yIHYPJZrg1Y0OZX94nWu4TMum3Hz46QrYWducCyf5RL5Mi/lcMPcfcit+51pWQsRW6M6oDtOfhljG /gI2QhfIqOKHLQ==; Original-Received: from [87.69.77.57] (port=4106 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oF8rS-00073k-LJ; Sat, 23 Jul 2022 02:43:39 -0400 In-Reply-To: (message from Stefan Monnier on Fri, 22 Jul 2022 19:38:09 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:292501 Archived-At: > From: Stefan Monnier > Cc: Robert Pluim , emacs-devel@gnu.org, Lars > Ingebrigtsen > Date: Fri, 22 Jul 2022 19:38:09 -0400 > > Regarding "prune cache" I earlier suggested that it could just "prune > nothing" when called from an Emacs with no native-compiler, but I later > saw that the docstring says: > > Remove .eln files that aren’t applicable to the current Emacs invocation. > > so another valid option would be for it to delete *all* the .eln files > when called from an Emacs without support for native compilation > (because none of the .eln files are "applicable to the current Emacs > invocation"). I think this would be a very dangerous thing to do, especially if someone has more than one build of the same Emacs version on the system. (I also don't think it could be possible, because important variables needed by that function are undefined in such a build, which is IMO fortunate.)