From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: edouard debry Newsgroups: gmane.emacs.devel Subject: [feature/native-comp] Automatically remove old *eln files Date: Tue, 30 Mar 2021 10:56:05 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c2f20905bebd2be7" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16034"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 30 10:57:09 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lRABR-00044x-8B for ged-emacs-devel@m.gmane-mx.org; Tue, 30 Mar 2021 10:57:09 +0200 Original-Received: from localhost ([::1]:54624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRABQ-0005qT-3f for ged-emacs-devel@m.gmane-mx.org; Tue, 30 Mar 2021 04:57:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53510) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRAAe-0005PJ-F8 for emacs-devel@gnu.org; Tue, 30 Mar 2021 04:56:20 -0400 Original-Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]:43928) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lRAAc-0006Wk-FM for emacs-devel@gnu.org; Tue, 30 Mar 2021 04:56:20 -0400 Original-Received: by mail-ed1-x530.google.com with SMTP id e7so17236998edu.10 for ; Tue, 30 Mar 2021 01:56:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=URCLZI7EsnO7Y/CuGTsGdg7YVduc6BvEIDd6zu+WrWA=; b=rD9utAO4DicIu3ycmwuCRPtcBP1tV4H6e1xs1AS04Fl705dbkBTTziTa6YjQyiDlfl B2P5qCUNvrLWdO+kLtGHj5wVAa1FskvPttExI+4Z1ayfriw9In+c3LjQoIgKSzRVdOPu XRzHhS6ibcRHZ5wEHRkIyov8/PoI8kVk9Y4zvWuOTXlHZCmeWaBWE62VGa93yKMYsam1 Y8n1Y5t/yYFSbHCjEMzo5Rm9TTeobj6prTudv/y6OWnnoX+8pmDjiTsgogfzicOHZUw+ Gl8h/adh9UrfviXfG+J24ZZu2DNYePGSXJCBgrMsjMiHP1GQDAFKRft/pSxI3qHUglpn 4TAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=URCLZI7EsnO7Y/CuGTsGdg7YVduc6BvEIDd6zu+WrWA=; b=V+af3mqiIe+OxxSx8Az+rqyfLUzNBHLtZVZX33YNAyW4JkI5Z4ftpZmyQNdapMmmXc Dglt1osCDq8ldezEX3CNLIK1YG+mv9mui85bVk8dLCUQ+TS+cniX/qPGMAyYB7+qvbgb fOIMEMeXL+ddbJzyGEgpAsxB2PSeY/aa4urNdiD22jDUYArI++ijmYjSR2nTKAhA6Qnl Nu5zWB9ARPu4WC0yAPOHLeZ6AwLFzheqCV/NScXSaJhEKsdlEyFxGTuk4DYZd1kg8ifK FjF/PMaFq1qAUwtWZYXn3YfZ1J4ThIyV+TELF8BeWiRYZS7wCCs9DThvV5f3zO99OA1G sSWA== X-Gm-Message-State: AOAM530Cn60atuHQ11ANDR7tX5X1niZablE7mn1MFkxOlGQyJAA0t/e4 NCLba0opG3Mnuztfg1iL7T1rFSsr5ciGMHIzuaSV+wh83E4= X-Google-Smtp-Source: ABdhPJyAZmQmnzOF/Lcelve81q70XMbr/qz8tqrvBcfQu9KheD4/L6/dQC4AMbtc4thK3tTl3HvJvobSlmxKbcD0WXs= X-Received: by 2002:a05:6402:1c98:: with SMTP id cy24mr32314320edb.296.1617094575844; Tue, 30 Mar 2021 01:56:15 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=edouard.debry@gmail.com; helo=mail-ed1-x530.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:267160 Archived-At: --000000000000c2f20905bebd2be7 Content-Type: text/plain; charset="UTF-8" I use emacs native-comp on windows, compiled on mingw64. When I upgrade emacs packages, I often run into "too many open files" which breaks the upgrade process. I can relaunch it as many times as necessary but then, I observe that there seem to have some redundant files : - in .emacs.d/elpa : treemacs-20210324.2101 treemacs-20210329.2007 - in .emacs.d/eln-cache/xxx : which-key-23f6ae93-26b66b60.eln which-key-46d465c9-7566430a.eln with-editor-6ad39f3c-1f6cab4d.eln with-editor-e9d03336-734ea3f5.eln I can cleanup easily the elpa directory thanks to the date, but it is harder for the eln-cache. Is there a way to cleanup both directories so that there remain only the most recent file for each package ? Anyway, I guess emacs will choose to load the latest *eln file, right ? Regards --000000000000c2f20905bebd2be7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

I use emacs native-comp on windows, co= mpiled on mingw64.

When I upgrade emacs packages, = I often run into "too many open files" which breaks the
upgrade process. I can relaunch it as many times as necessary but then, I = observe that
there seem to have some redundant files :
= - in .emacs.d/elpa :
treemacs-20210324.2101
treemacs-20= 210329.2007
- in .emacs.d/eln-cache/xxx :
which-key-23f= 6ae93-26b66b60.eln
which-key-46d465c9-7566430a.eln
with-editor-6ad39f= 3c-1f6cab4d.eln
with-editor-e9d03336-734ea3f5.eln

I can cleanup easily the elpa directory thanks to the date, but it is ha= rder for the eln-cache.

Is there a way to cleanup = both directories so that there remain only the most recent file for each pa= ckage=C2=A0 ?

Anyway, I guess emacs will choose to= load the latest *eln file, right ?

Regards







--000000000000c2f20905bebd2be7--