From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Amin Bandali Newsgroups: gmane.emacs.devel Subject: Re: Cleaning up and structuring user-emacs-directory Date: Wed, 19 Aug 2020 01:03:51 -0400 Organization: GNU Message-ID: <87blj7jkg8.fsf@gnu.org> References: <677E1813-9A0E-4127-9814-36CB9AB8B744@gmail.com> <871rk6uzbv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18609"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Gunnar Horrigmo , emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 19 07:04:33 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 1k8GH3-0004jf-QY for ged-emacs-devel@m.gmane-mx.org; Wed, 19 Aug 2020 07:04:33 +0200 Original-Received: from localhost ([::1]:48902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k8GH2-0006pS-M8 for ged-emacs-devel@m.gmane-mx.org; Wed, 19 Aug 2020 01:04:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k8GGY-0006PO-P3 for emacs-devel@gnu.org; Wed, 19 Aug 2020 01:04:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41018) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k8GGX-0001y3-Jo; Wed, 19 Aug 2020 01:04:01 -0400 Original-Received: from [2607:fea8:3fdf:f688::8] (port=57714 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k8GGO-0003gP-FK; Wed, 19 Aug 2020 01:03:52 -0400 Mail-Followup-To: Richard Stallman , Gunnar Horrigmo , emacs-devel@gnu.org In-Reply-To: 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:253986 Archived-At: --=-=-= Content-Type: text/plain Richard Stallman writes: > [[[ 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. ]]] > > > Would it not be better to follow the freedesktop spec? > > https://specifications.freedesktop.org/basedir-spec/basedir-spec-0.6.html > > Concretely, what change would that mean in Emacs? In short, the approach that I proposed divides up `user-emacs-directory' 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, where 'XDG_DATA_HOME' defaults to "~/.local/share" and 'XDG_CACHE_HOME' to "~/.cache". The pros of the approach I proposed include `user-emacs-directory' remaining self-contained like before, and it being divided up into subdirectories for specific categories of files for each package. The cons of the approach include it not following a particular spec such as the XDG Base Directory spec. The pros of the XDG Base Directory approach suggested by Gunnar include the proposed behaviour by Emacs conforming to the XDG Base Directory spec, which has been seeing adoption among GNU/Linux applications. Its cons would include `user-emacs-directory' no longer being the one-stop shop for the user's Emacs files, a more significant departure from Emacs's traditional behaviour. I'm personally leaning towards the former, somewhat more conservative approach, but could see the arguments for the latter as well. I'm interested in hearing other folks' thoughts and opinions, and other pros/cons they can think of. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJEBAEBCAAuFiEEObM8jZRIDS3cwqSYi0Sgzce5VvIFAl88srcQHGJhbmRhbGlA Z251Lm9yZwAKCRCLRKDNx7lW8sZGD/9t1bJXAVOl3kmdK2UZA6UtUV07sQirVCkA 7Dq2O+hxQXQ3uybEvz9wVp+N6qA/LLJKORGS6FW9ahES+rYwS92KQn6fdqwULm+V xS43mT2eEPuM1Gc6cNJFQpCJftR3ZvcOhFwArgrzAva/pxINRUzoMbS+sIXNrNfj I0zKlXOrDXq05QMmyVzVQp1fSzgptomswFkuCyDi4HU7XtGwM/gA9azFLcjm3TQI ErWCKw/I9kCogmauqEJChqQa1tZHYeEQn2RUZ+XAMp5OxJtZIQeyD9McJckbuwGR 7BWv0aMy8z31OiDkCVSo38nUiLnJALDv8nvg+UmpbJ9Kn3aoahLAdG+RZLSEQVF2 W0WTxgeeW+o5Mn/YtEb9IzS17i5KGMiataaF7UGfWl0GXrGg2thf1NsTCYxBGYMn u4QqSCFPKk0xyZo5+m7kcDUKMIDrC/tyb+tNiYxjbCQ3eZX+aMZAK9qz99IrbxFr GpFNwZNuRR9gGy6igCqGV42SwXNQ4fm219sOFwhcb0NmLIImEa70zY8mlaW+iguO kkCMUV0AI/P1+lkXF+xktFuA4d8dav5rLzXw5DNABluHchWy1a8c7yw2aVpCOpBH 1eUyXVwFOIEy3IfcMqWzc3TDaW1cFcTgC8joj+aEQLcSIo+obCvmlWYrxMFcBnyh vnCKevp7jQ== =Zvfo -----END PGP SIGNATURE----- --=-=-=--