From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: Cleaning up and structuring user-emacs-directory Date: Thu, 20 Aug 2020 10:14:49 -0700 Message-ID: References: <677E1813-9A0E-4127-9814-36CB9AB8B744@gmail.com> <871rk6uzbv.fsf@gnu.org> <87blj7jkg8.fsf@gnu.org> <71E9D76E-35D0-4965-8D57-0C6896BF2958@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=gb18030 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11197"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Yuan Fu , horrigmo@runbox.no, Amin Bandali , Richard Stallman , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 20 19:16:00 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 1k8oAQ-0002kd-FO for ged-emacs-devel@m.gmane-mx.org; Thu, 20 Aug 2020 19:15:58 +0200 Original-Received: from localhost ([::1]:43388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k8oAP-0000ly-Dd for ged-emacs-devel@m.gmane-mx.org; Thu, 20 Aug 2020 13:15:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k8o9S-0008DW-No for emacs-devel@gnu.org; Thu, 20 Aug 2020 13:14:58 -0400 Original-Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:40232) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k8o9P-0008NF-SZ for emacs-devel@gnu.org; Thu, 20 Aug 2020 13:14:58 -0400 Original-Received: by mail-pf1-x42d.google.com with SMTP id k18so1350709pfp.7 for ; Thu, 20 Aug 2020 10:14:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=F3M4CojDB4jqWZQrLCKBEx9Caqzm1rtqXXuuO9uSgvI=; b=h5wXs3OTM5XsIC+4FNvu7OqtT6YGgWRrGIv6njQOmuq8mLeQNyarpqQ8bgmVY0CkMx JLFoZ40HvUwB3JcKdfZ+3acqxWbBN8p/n60Vr0yvUySoStsT+qlcQRNhYk5S9vN2zi7S 94ycc47LrNKCHHauQiobbZtKkAcLO2PLlmy0JxLNiPENwNZU9i9auvi8G63rnJISPJkx ADRLo9+IbbOWqLK8iH0zuGp2JIW5D5AbhG+/HoTgFldhjt7AozUHDqxfqvNh5OGfRq3x mh6ynZIPT62IVYCbsuWnjEqMz4bH7YMQtH8kWTmdd8q2pdfGyGsnnqdWkTo8+h/oS+22 CpJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=F3M4CojDB4jqWZQrLCKBEx9Caqzm1rtqXXuuO9uSgvI=; b=fQKLBqwPYLWHKv87l3vGnEHndRMvUr6YgEO8+bIxvvyLhdA1J3dstpgRthyQhG9Z6m pp0vmykzRHIPt6Bq9oON+NFWw3rnw3uYl/mYil3oK+CFh91RVwAn7s7YD+LXqmGis3UZ 3T62XEghTOz8hW/fnM9WGiV2keArJ0pFupjDDXdPQ7HgtsMKdb+sSq1QJNQunVGxOQMS cAUxSHcuPM/gE4sYohsQsFTT0fpCgvG3HTx7hTARfapq6E+CRlQWAgE1613Ze6mvC+Cq 790W9XnXgdIg6BkQpeh4dFvsTFqzQzudawdKYcHtsOFfrrEzbThx7bfltuNAtUG9QGGJ 3PUQ== X-Gm-Message-State: AOAM531ouJ4WSToTNIps7SciLrtj6uefEbH1ro3KWWvmOWaSxBGuhKCC BaPoDQV8VqpcS9hwUZjSDiOuOQ== X-Google-Smtp-Source: ABdhPJwpg2bWtLxzmbt/elZLQRLCcg6LG8r3C4rTimcmK7LloUGOQABRdKhAnssCA7veFKiVp12oNw== X-Received: by 2002:a62:fcca:: with SMTP id e193mr2979099pfh.316.1597943692147; Thu, 20 Aug 2020 10:14:52 -0700 (PDT) Original-Received: from raman-glaptop.localdomain (c-24-4-174-65.hsd1.ca.comcast.net. [24.4.174.65]) by smtp.gmail.com with ESMTPSA id 20sm3053641pgz.20.2020.08.20.10.14.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Aug 2020 10:14:50 -0700 (PDT) Original-Received: by raman-glaptop.localdomain (Postfix, from userid 13930) id 81803C21316; Thu, 20 Aug 2020 10:14:49 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Thu, 20 Aug 2020 11:24:11 -0400") Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=raman@google.com; helo=mail-pf1-x42d.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: -160 X-Spam_score: -16.1 X-Spam_bar: ---------------- X-Spam_report: (-16.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, MIME_CHARSET_FARAWAY=2.45, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 autolearn=unavailable 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:254059 Archived-At: Stefan Monnier writes: also auto-insert-directory could profit fromusing locate-user-emacs-file > Yuan Fu [2020-08-20 10:56:28] wrote: > >>> On Aug 19, 2020, at 11:09 PM, Richard Stallman wrote: >>>=20 >>> [[[ To any NSA and FBI agents reading my email: please consider ]]] >>> [[[ whether defending the US Constitution against all enemies, ]]] >>> [[[ foreign or domestic, requires you to follow Snowden's example. ]]] >>>=20 >>>> In short, the approach that I proposed divides up `user-emacs-director= y' >>>> into multiple subdirectories and keeps `user-emacs-directory' as the >>>> all-in-one source of a user's Emacs files, while the XDG Base Directory >>>> approach as suggested by Gunnar would imply keeping only configuration >>>> files in `user-emacs-directory', and moving data and cache files to >>>> "$XDG_DATA_HOME/emacs/" and "$XDG_CACHE_HOME/emacs/" respectively, whe= re >>>> 'XDG_DATA_HOME' defaults to "~/.local/share" and 'XDG_CACHE_HOME' to >>>> "~/.cache". >>>=20 >>> There is a benefit to putting all cache files in ~/.cache. For >>> instance, you know where to find all the files you can safely delete, >>> regardless of which program made them. >>>=20 >>> What concretely are "data" files, for Emacs? I don't know where in >>> the sources to look for that info. Can you mention a few examples and >>> what data they contain? With specifics, we can see the concrete >>> advantage of one choice or the other. With only the abstraction "data >>> files", we can see only at the level of abstractions, and that is a sort >>> of blindness that can lead to bad decisions. >>>=20 >> >> I don=A1=AFt know about the concrete definition, but some built-in examp= les includes: >> >> recentf-save-file >> bookmark-default-file >> savehist-file >> project-list-file > > ecomplete-database-file > > > Stefan > > --=20 =817=A94Id: kg:/m/0285kf1 =950=DC8=817=A94