From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#48108: Wishlist: Command to remove redundant eln cache directories [native-comp] Date: Thu, 29 Apr 2021 16:59:44 -0500 Message-ID: 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="25321"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Andrea Corallo To: 48108@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 30 00:00:14 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 1lcEhe-0006QK-VJ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Apr 2021 00:00:10 +0200 Original-Received: from localhost ([::1]:44264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcEhd-0000ws-VQ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Apr 2021 18:00:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcEhX-0000we-4j for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 18:00:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45440) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lcEhW-0004OW-Sq for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 18:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lcEhW-0002xk-AR; Thu, 29 Apr 2021 18:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: akrl@sdf.org, bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Apr 2021 22:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48108 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: Andrea Corallo Original-Received: via spool by submit@debbugs.gnu.org id=B.161973359011341 (code B ref -1); Thu, 29 Apr 2021 22:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Apr 2021 21:59:50 +0000 Original-Received: from localhost ([127.0.0.1]:56986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcEhK-0002wr-4T for submit@debbugs.gnu.org; Thu, 29 Apr 2021 17:59:50 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcEhI-0002wi-Cj for submit@debbugs.gnu.org; Thu, 29 Apr 2021 17:59:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcEhI-0000ut-4L for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 17:59:48 -0400 Original-Received: from mail-pl1-f178.google.com ([209.85.214.178]:46757) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lcEhG-0004Cg-FM for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 17:59:47 -0400 Original-Received: by mail-pl1-f178.google.com with SMTP id s20so19683510plr.13 for ; Thu, 29 Apr 2021 14:59:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=s9uLCgk4FwcK5zCV6CVKyQiGBo3c4g/mrQW6h7daWkY=; b=BLgfGKw85j/4M00EcIe8Th6S9wEE+3luUgdmbNjhd+GFpld6vcmuigSywo7YYqX7MX yrYGX9J6pATd2pOs0/9LEG2dYJlorea2e2oz7xxxH9Pf9qFr4Ai8WcnzqQr1TbqPWaQ6 qETX6jDiB8uRhnGYbygAo5wPh6oywuC8wcE9+0+AnRn1ja/aajaiBp+mecGpyaq/X8uU AVWQz2n5Moc81vuU+zEp6DRs3Rooy3y/9tsrq6tWjvEjJoWt5Twg5SMP61bvH3CjvFhz 3VCxXERfErGbO51BvEL+n6Gxsbt/ZZJZvIVhhAnYsumhh9hOagpmZyWMkpxIQ6NS8QLC sT5w== X-Gm-Message-State: AOAM531L3NE4Lz5P7zoko5KEcotE6UH86duH/U4N3Gdhwj4Q65yVmFEp YM/fhB0fMc4vCahTTgA8pG/ha2y8ShiIfZ2os9y6SiHb X-Google-Smtp-Source: ABdhPJyaoDloSAWoWizT71nYIo2EIfaw9BiBfh8ZEf3Zye2bMyYTrWcK/zauFmFeenVJmueq4CfPNUAEMYf4fdRoN+c= X-Received: by 2002:a17:902:b902:b029:ed:82aa:7cbc with SMTP id bf2-20020a170902b902b02900ed82aa7cbcmr1873191plb.39.1619733585002; Thu, 29 Apr 2021 14:59:45 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 29 Apr 2021 16:59:44 -0500 Received-SPF: pass client-ip=209.85.214.178; envelope-from=stefankangas@gmail.com; helo=mail-pl1-f178.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:205205 Archived-At: Severity: wishlist Please consider adding a function and/or command to clear the eln cache of redundant eln cache directories. 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: 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. 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'.