emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cleaning up and structuring user-emacs-directory


From: Stefan Kangas
Subject: Re: Cleaning up and structuring user-emacs-directory
Date: Sun, 23 Aug 2020 12:11:53 -0400

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> We should take care to distinguish which files are cache files
>> and put them into ~/.cache.
>
> Agreed.  I think package.el's `archive-contents` file do qualify as
> caches, as do the <pkg>-readme.txt files.

How about something like:

(locate-user-cache-file "foo")
=> ~/.cache/emacs/foo

(locate-user-cache-file "archive-contents" 'package)
=> ~/.cache/emacs/package/archive-contents

(We already have `xdg-cache-home', BTW.)

Best regards,
Stefan Kangas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]