From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rudolf Schlatte Newsgroups: gmane.emacs.bugs Subject: bug#48108: Wishlist: Command to remove redundant eln cache directories [native-comp] Date: Fri, 01 Jul 2022 18:18:16 +0200 Message-ID: References: <87czep84vs.fsf@gnus.org> <83mtdtdpzv.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="34174"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin) To: 48108@debbugs.gnu.org Cancel-Lock: sha1:wJWG9aU7oaDwgwI60TR/oI7Ec8E= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 01 18:33:32 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 1o7JaF-0008gd-AT for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Jul 2022 18:33:31 +0200 Original-Received: from localhost ([::1]:32850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7JaE-0000s0-69 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Jul 2022 12:33:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7JME-0003jk-Vo for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 12:19:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45146) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o7JME-000438-ME for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 12:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o7JME-0007bx-Hv for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 12:19:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Rudolf Schlatte Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Jul 2022 16:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48108 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.165669231229214 (code B ref -1); Fri, 01 Jul 2022 16:19:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Jul 2022 16:18:32 +0000 Original-Received: from localhost ([127.0.0.1]:39043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7JLj-0007b8-MX for submit@debbugs.gnu.org; Fri, 01 Jul 2022 12:18:31 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:53532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7JLh-0007av-1c for submit@debbugs.gnu.org; Fri, 01 Jul 2022 12:18:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7JLg-0002qs-Sy for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 12:18:28 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:37110) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7JLd-0003xY-0E for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 12:18:27 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1o7JLZ-0007UR-JT for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 18:18:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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:235828 Archived-At: Eli Zaretskii writes: >> 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? How about only deleting .eln files below these directories, and removing the directories only when they are empty afterwards? I'm suddenly imagining users who put other files into such directories, or add their home directory to native-comp-eln-load-path, or ...