unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Is there a command to auto-purge old eln-cache files?
Date: Fri, 24 Jun 2022 16:33:58 -0400	[thread overview]
Message-ID: <CAFyQvY1JhKKQ1OOxJ+GD8w9Hd_-7g2qYWFp-eW70m0dKWEak8Q@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 641 bytes --]

Hello,

I routinely update my emacs build from git and over time, and so I
collect hundreds of MBs of eln-cache files. Just looking at the
eln-cache dir names, it's not very evident which one is the latest one
(especially, from a tool call ncdu, I cannot tell which directories
should be safe to delete).

You can find the screenshot of what I see in ncdu attached.

So that made me wonder if there's already an emacs-lisp function to
purge old eln caches, and I am not aware?

What's the recommended way to keep the eln-cache the lightest and
containing only the directory corresponding to the last emacs build?

Thanks!



--
Kaushal Modi

[-- Attachment #2: image.png --]
[-- Type: image/png, Size: 27215 bytes --]

             reply	other threads:[~2022-06-24 20:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-24 20:33 Kaushal Modi [this message]
2022-06-25  5:28 ` Is there a command to auto-purge old eln-cache files? Eli Zaretskii
2022-06-25 16:37   ` Kaushal Modi

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=CAFyQvY1JhKKQ1OOxJ+GD8w9Hd_-7g2qYWFp-eW70m0dKWEak8Q@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --cc=help-gnu-emacs@gnu.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.
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).