unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: 48108@debbugs.gnu.org
Cc: Andrea Corallo <akrl@sdf.org>
Subject: bug#48108: Wishlist: Command to remove redundant eln cache directories [native-comp]
Date: Thu, 29 Apr 2021 16:59:44 -0500	[thread overview]
Message-ID: <CADwFkmm-wxs_HLbK+OfFSL7MiZs4YvJdf6qz8HcwGVHviUjK2Q@mail.gmail.com> (raw)

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'.





             reply	other threads:[~2021-04-29 21:59 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-29 21:59 Stefan Kangas [this message]
2021-04-30  7:59 ` bug#48108: Wishlist: Command to remove redundant eln cache directories [native-comp] Eli Zaretskii
2022-07-01 11:11 ` Lars Ingebrigtsen
2022-07-01 11:36   ` Eli Zaretskii
2022-07-01 16:18     ` Rudolf Schlatte
2022-07-01 18:13       ` Eli Zaretskii
2022-07-02 10:40     ` Lars Ingebrigtsen
2022-07-02 10:48       ` Eli Zaretskii
2022-07-02 11:01         ` Lars Ingebrigtsen
     [not found] <CAAeL0SRmG9KtR7PLcmYrS2DUsiuWz72stWz=ir5F02rZnLfJ3A@mail.gmail.com>
2022-11-28 12:44 ` Eli Zaretskii
2022-11-28 13:09   ` Juanma Barranquero
2022-11-28 13:22     ` Juanma Barranquero
2022-11-28 13:43       ` Eli Zaretskii
2022-11-28 13:54         ` Juanma Barranquero
2022-11-28 14:44           ` Eli Zaretskii
2022-11-28 15:14             ` Juanma Barranquero
2022-11-28 16:48               ` Eli Zaretskii
2022-11-28 16:53                 ` Juanma Barranquero
2022-11-28 13:38     ` Eli Zaretskii
2022-11-28 13:48       ` Juanma Barranquero

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADwFkmm-wxs_HLbK+OfFSL7MiZs4YvJdf6qz8HcwGVHviUjK2Q@mail.gmail.com \
    --to=stefan@marxist.se \
    --cc=48108@debbugs.gnu.org \
    --cc=akrl@sdf.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).