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.bugs Subject: bug#48108: Wishlist: Command to remove redundant eln cache directories [native-comp] Date: Fri, 01 Jul 2022 14:36:04 +0300 Message-ID: <83mtdtdpzv.fsf@gnu.org> References: <87czep84vs.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36567"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48108@debbugs.gnu.org, stefan@marxist.se, akrl@sdf.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 01 13:37:09 2022 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 1o7ExQ-0009O7-RQ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Jul 2022 13:37:08 +0200 Original-Received: from localhost ([::1]:60072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7ExP-0008Io-ND for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Jul 2022 07:37:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7ExK-0008IV-A8 for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 07:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42558) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o7ExK-0000Nz-1t for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 07:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o7ExJ-000522-Q5 for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 07:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Jul 2022 11:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48108 X-GNU-PR-Package: emacs Original-Received: via spool by 48108-submit@debbugs.gnu.org id=B48108.165667537919289 (code B ref 48108); Fri, 01 Jul 2022 11:37:01 +0000 Original-Received: (at 48108) by debbugs.gnu.org; 1 Jul 2022 11:36:19 +0000 Original-Received: from localhost ([127.0.0.1]:36455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7Ewc-000513-NC for submit@debbugs.gnu.org; Fri, 01 Jul 2022 07:36:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7EwY-00050n-1q for 48108@debbugs.gnu.org; Fri, 01 Jul 2022 07:36:18 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35602) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7EwR-00075U-Ry; Fri, 01 Jul 2022 07:36:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=d9Ua0IEBasGF7IRsZcN1QAhYemtZf/Slnfcd5cTnzP0=; b=r/aVG626d+10 ekqXP8c2KWeGfqqyD9w7ozsDEjehGGkpABWS3ZdrYd4IAdtps7oYWx9L+mv19Vtu1fxTSyV8VvJD1 kpFZkclZ476worGtS9fl1Gywo8cIAnkiFzMRiwMVvgp0zA7uMeYVSBAoVWTBmrLznft7U3D/TL5cG TYW+VPY+Cgexja8EojRmcrcq90EHUyBMtDfLHG4ZQfJi2tlV2XRqKtLRQWGMKv72Sl3j5cnq2fhb5 jaDMaXxhleMx2smTqnQd3n9gwO6UQWiEEPkWwnNf5xi+xbzujiKQsPhSUWHvFw1PnWxlOackVDb87 RHPKsXl8H59tKhGVjrODNg==; Original-Received: from [87.69.77.57] (port=4016 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 1o7EwE-0005mk-Az; Fri, 01 Jul 2022 07:36:01 -0400 In-Reply-To: <87czep84vs.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 01 Jul 2022 13:11:03 +0200) 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:235789 Archived-At: > Cc: 48108@debbugs.gnu.org, Andrea Corallo > From: Lars Ingebrigtsen > Date: Fri, 01 Jul 2022 13:11:03 +0200 > > Stefan Kangas writes: > > > The exact details of this would of course need to be discussed, but as > > a starting point perhaps we could imagine two modes of operation: > > [...] > > > 2. Remove all eln cache directories except the one currently in use. > > > > I imagine that casual users only ever use one version of Emacs at the > > same time (i.e. because they simply install Emacs using their package > > manager), so perhaps the first one could be the default mode of > > operation. > > > > We could add a number of options to ensure a user can tweak this to > > their own liking. > > > > One idea for a command name is `native-compile-cache-clear'. > > I think 2) would be sufficient for most people, and, yes, having a > command for this would be nice. It shouldn't be hard to implement, but do we want to delete such a directory only under ~/.emacs.d/eln-cache/, or under all the directories in native-comp-eln-load-path?