From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: A cache directory? Date: Mon, 17 Aug 2020 02:45:23 +0700 Message-ID: References: <677E1813-9A0E-4127-9814-36CB9AB8B744@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6763"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 16 21:46:24 2020 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 1k7Obn-0001fV-PK for ged-emacs-devel@m.gmane-mx.org; Sun, 16 Aug 2020 21:46:23 +0200 Original-Received: from localhost ([::1]:41968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k7Obm-0008FD-Ra for ged-emacs-devel@m.gmane-mx.org; Sun, 16 Aug 2020 15:46:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36170) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7Ob3-0007oO-MO for emacs-devel@gnu.org; Sun, 16 Aug 2020 15:45:37 -0400 Original-Received: from mail-vs1-xe33.google.com ([2607:f8b0:4864:20::e33]:33750) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k7Ob2-0006yy-3w for emacs-devel@gnu.org; Sun, 16 Aug 2020 15:45:37 -0400 Original-Received: by mail-vs1-xe33.google.com with SMTP id o184so7242200vsc.0 for ; Sun, 16 Aug 2020 12:45:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=mFYBHcn9Gu+BaZA8DLFxZDhrx6LW2CbLfZFmR54Ezrg=; b=sfQdQWzoEURnOTp8bMdkQtnOZxiklvdUoo3DUjyUsBr5uTYya+yp6eGKt451Uv3pBt /3+2Axohfp/b8gdkB7LNI3TCqubmhTPDK4r0aGFWlfkBVNFeG4x24n1066V8/pbPoUlb ypQSf0IgoksBp7hQkjxORFx7E2Sc0b4yfuzbXeKedyvGKbHdmeMgq6VA118KusPA8A9Q 9VoOCtP7Hml2sD5KrYplP1DaYLH6AoJ3ccvCmt8FQRP3GABm/9/+OAvM8gXEYHTuQ5qN +amfPLH99Lsv4c53dOrEtDw8B5pifm8RmdTHJc23FLwvoEu6MJGiGXE7hvWmjRGqjCnH yfxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=mFYBHcn9Gu+BaZA8DLFxZDhrx6LW2CbLfZFmR54Ezrg=; b=Eg42b2Lkb9aH4Zj5pbs/pqPLYi/E4lAiPVRIgGRqM2AX+2CnFZFigtZkIVYRMZVX3v s6akB0fUa/Y4B63popl6kevqZ35vfusO+n7jTGBqhqE4Xi6E+AcYf7R0oAPmF7VI+lyE Hh6YHQd9g9dMmY9VxNS/5DyiyZ9pXDymqxp+kQqnTWQIe7iloRnoDnaV24LEkSC+ZFnX B2WKNKEL00QECv30wEukMQzvGCApYF9X1BZEwor8/pBRZsHe2md9SB7sPBCiOul0J4AF wn8jgXb8W1IJ77iMTyTeurXVWu+q4FpNvSRlX/IVN+ykQjMqrnuApBi+dcdLivICBd/h Fzag== X-Gm-Message-State: AOAM530TfibgrFdE1SPtajs0zW3qwrpYErVzqavcqt+KAvuRYSznzQjI rwumZWRzsw4vdEiH1o3O37JC9f2/WNEsrvBlK+8= X-Google-Smtp-Source: ABdhPJyx+FZAgCuiK8m+Z+HqPivl7PfvtvnTkrvJWXX9vyXEn8X51OCc70ADzro1p9+z/GqTEX04/+bVr92vz+qsKWw= X-Received: by 2002:a67:ef1d:: with SMTP id j29mr6625394vsr.139.1597607134457; Sun, 16 Aug 2020 12:45:34 -0700 (PDT) In-Reply-To: <677E1813-9A0E-4127-9814-36CB9AB8B744@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::e33; envelope-from=yurivkhan@gmail.com; helo=mail-vs1-xe33.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, 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:253863 Archived-At: On Mon, 17 Aug 2020 at 02:30, Yuan Fu wrote: > > Maybe this has been discussed but I can=E2=80=99t find any threads in the= archive. .emacs.d is pretty crowded: every package puts their temporary fi= les under it. I wonder if there could be a standard cache directory? I know= there are packages that's solely for this purpose: resetting every single = xxx-file to be under a cache directory. However, it would be better if ther= e is just a standard one and everybody uses it. There is a package called [no-littering][1] that modifies many packages=E2=80=99 defaults to use .emacs.d/var/ for their persistent data, = of which caches are a subset. The convention (simplified; see README for full details) is, if a package has a single persistent file, then it goes right there; otherwise, they go in a subdirectory named after the package responsible. [1]: https://github.com/emacscollective/no-littering