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, 30 Apr 2021 10:59:37 +0300 Message-ID: <838s50cidy.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28541"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48108@debbugs.gnu.org, akrl@sdf.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 30 10:00:15 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 1lcO4M-0007JF-L2 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Apr 2021 10:00:14 +0200 Original-Received: from localhost ([::1]:43602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcO4L-0007yY-Nl for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Apr 2021 04:00:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcO4B-0007xW-2V for bug-gnu-emacs@gnu.org; Fri, 30 Apr 2021 04:00:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45868) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lcO4A-0003ag-Pq for bug-gnu-emacs@gnu.org; Fri, 30 Apr 2021 04:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lcO4A-0004gr-Ki for bug-gnu-emacs@gnu.org; Fri, 30 Apr 2021 04:00:02 -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, 30 Apr 2021 08:00:02 +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.161976959417990 (code B ref 48108); Fri, 30 Apr 2021 08:00:02 +0000 Original-Received: (at 48108) by debbugs.gnu.org; 30 Apr 2021 07:59:54 +0000 Original-Received: from localhost ([127.0.0.1]:57414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcO42-0004g5-Im for submit@debbugs.gnu.org; Fri, 30 Apr 2021 03:59:54 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcO40-0004ft-Dd for 48108@debbugs.gnu.org; Fri, 30 Apr 2021 03:59:53 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58735) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcO3u-0003Pj-Nw; Fri, 30 Apr 2021 03:59:46 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1143 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lcO3t-0005LU-6K; Fri, 30 Apr 2021 03:59:45 -0400 In-Reply-To: (message from Stefan Kangas on Thu, 29 Apr 2021 16:59:44 -0500) 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:205231 Archived-At: > From: Stefan Kangas > Date: Thu, 29 Apr 2021 16:59:44 -0500 > Cc: Andrea Corallo > > 1. Remove cache directories for versions older than the version > specified by a new user option that defaults to > (- emacs-major-version 2) or something. > > Remove cache directories for the same version as the current one > but with a different hash. > > Remove duplicate directories for any given version, except the > most recently added one. > > 2. Remove all eln cache directories except the one currently in use. This is somewhat tricky, so I suggest that you (or someone else) comes up with a convenient UI for such a feature and describes it in enough detail to see whether it's feasible. Namely, how would the user indicate which *.eln files can be deleted and which should stay? Some thought points: . the .eln hashes depend not only on the version but also on other internal details, like the ABI version and more . it isn't clear how the user will be able to come up with "the hash" (especially since there are several hashes involved, not just one) > 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. I don't know what you mean by "casual users", but I generally have all the versions since Emacs 21 installed on my machines. Btw, we might go look what others do with similar caches, for example Guile. Do they even bother to clean these caches up?