From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.help Subject: Re: Is there a command to auto-purge old eln-cache files? Date: Sat, 25 Jun 2022 12:37:43 -0400 Message-ID: References: <83zgi1b9cc.fsf@gnu.org> 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="15777"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs mailing list To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 25 18:38:39 2022 Return-path: Envelope-to: geh-help-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 1o58nu-0003x0-BN for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 25 Jun 2022 18:38:38 +0200 Original-Received: from localhost ([::1]:51106 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o58nt-00008C-6S for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 25 Jun 2022 12:38:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o58nC-00007n-V9 for help-gnu-emacs@gnu.org; Sat, 25 Jun 2022 12:37:54 -0400 Original-Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]:33571) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o58nB-0003oN-86; Sat, 25 Jun 2022 12:37:54 -0400 Original-Received: by mail-pf1-x430.google.com with SMTP id n12so5260246pfq.0; Sat, 25 Jun 2022 09:37:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gt7CZBx8K8KyMFO5JJWfbiXRT1ayx3JvrWTceVu6dcY=; b=ZCT/Buj1vYSw+qLg8KxnJKbH0Yr4Xqz5468URxSMSa82PpIFjTiFxfDuJuTsrJ2GBt 9S2tEsIiAN5T/K3vBOxrS+b5P3AXYbtONkyjy8iT7EFsSyKwbcmSYffxg44xzrEHqdCW +K4Fs/WQSeIOU7XCAukQjIaB6VCJfbFt9Aoa97Qlqli/iuuJWrEJWcvaX/somh2pu1ZF OKNLu0YMqVGXxKiDfDDxk0uTOlLDH3Y1p0q0Ln+xkrDs923hqd/wG2VjtJbMIUSj7G2s Mwz1JDP8bnuofLMI2/i9kTdoIXgIX7nXkUoa5/nc7YeSFgk06xDNIE6pf0CqGV4M/mZE DGhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gt7CZBx8K8KyMFO5JJWfbiXRT1ayx3JvrWTceVu6dcY=; b=VjHNkNUN66uHBzN+L3wFfot5b4Z1kQ/ixq8FtZAfAWp3h3VcxT4HYqXnzJ5SKob+fl G5P6ow81UwXm1AgYVUd89N3qqsw7HbEEnmC/OJ5Toe+7BDrQPa1OPV9wqf/OqaiTQQPc gtwkB6dFkoMxTYUY3zMh4JSaofIJdFUP62ilcPai0+5AZHUX24rK0RbRziCXxKXKmVGw UTaqDZ7pFXNVd+XNo427acRwLXKvXbGqJIRflrKE+iOluyGfqVaBpzZMXdGNd80TE5Kx 33DrMcqKXurf4TeUl9cmTLMpIgubx+4bNQk6ZITl8cZiC33/uI6+Kd9zB8cNgmoJQZUU sjbA== X-Gm-Message-State: AJIora/aZMg+sB3k4VNJqljGmxmV0Eh/GlcFV0SZj1vTD1xv2PZ5lQkt pLmDb1eR6NRQ0SI/V6rlzmc7kxYv5JDvq6+N+Q59viQR X-Google-Smtp-Source: AGRyM1vPnjSzK8+HoUBWkOjg/KEoEMJd0oEJxKFTEtUz0WZOV04crtLYlKDt286ef2HlUDOseKMi1pdYolYWBk84jm8= X-Received: by 2002:a05:6a00:805:b0:525:532c:6655 with SMTP id m5-20020a056a00080500b00525532c6655mr5212768pfk.70.1656175070664; Sat, 25 Jun 2022 09:37:50 -0700 (PDT) In-Reply-To: <83zgi1b9cc.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=kaushal.modi@gmail.com; helo=mail-pf1-x430.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:138089 Archived-At: On Sat, Jun 25, 2022, 1:30 AM Eli Zaretskii wrote: > > From: Kaushal Modi > > Date: Fri, 24 Jun 2022 16:33:58 -0400 > > > > 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). > > If you keep only one Emacs executable for all those builds, and either > delete the old ones or don't care whether they remain usable, then you > can identify the only subdirectory under the eln-cache directory you > need to keep by one of the following methods: > Thanks. I think I'll just add an rm -rf of the entire eln-cache directory after each successful build of Emacs. Define "old" for this purpose. > > E.g., I keep many old Emacs executables (it makes it easier to bisect > bugs), so for me "old" means "belonging to an Emacs executable I > removed". > For my use case, any emacs built before the last build is old. I'll have to rethink that rm -rf strategy if I decide to maintain multiple major versions of Emacs. To add, it would be helpful to have an `eln-cache-purge` emacs command that would delete the eln-cache directories only for the major.minor version of the Emacs session from where that command is called. Thanks. >