unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#48543: Feature request: put ELN cache in $XDG_CACHE_HOME by default
@ 2021-05-20 17:25 Clément Pit-Claudel
  2022-07-13 12:08 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Clément Pit-Claudel @ 2021-05-20 17:25 UTC (permalink / raw)
  To: 48543

Hi all,

By default the eln cache is stored in .emacs.d/eln-cache.  Would it make sense to store it in $XDG_CACHE_HOME/emacs/eln by default on platforms that obey the XDG spec?

I came across this because my backup scripts already exclude $XDG_CACHE_HOME, but didn't exclude .emacs.d/eln-cache, so I found myself backing up hundreds of megabytes of ELN files.

In a related Reddit discussion, https://www.reddit.com/r/emacs/comments/mltaie/gccemacs_how_to_permanently_change_where_elncache , Steve Purcell wrote:

> Now that emacs honours xdg settings for finding its own config, might it make sense for the eln cache to move to the xdg cache directory?

And Eli Zaretskii responded:

> I don't think so, personally: the XDG spec says the XDG cache directory should hold "user-specific non-essential (cached) data files". The *.eln files don't fit that description: the user would like the files to persist.
>
> That said, feel free to submit a feature-request bug report about this, and let's see what others think about this.

FWIW, I had a quick look through my .cache folder, and it seems that chromium and Firefox both put compiled code in that folder (JS bytecode and compiled Webassembly files).






^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-07-13 14:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-20 17:25 bug#48543: Feature request: put ELN cache in $XDG_CACHE_HOME by default Clément Pit-Claudel
2022-07-13 12:08 ` Lars Ingebrigtsen
2022-07-13 12:42   ` Eli Zaretskii
2022-07-13 12:45     ` Lars Ingebrigtsen
2022-07-13 13:09       ` Visuwesh
2022-07-13 14:01         ` Stefan Kangas
2022-07-13 13:40       ` Andrea Corallo

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