From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gunnar Horrigmo Newsgroups: gmane.emacs.devel Subject: Re: Cleaning up and structuring user-emacs-directory Date: Tue, 18 Aug 2020 09:51:49 +0200 Message-ID: References: <677E1813-9A0E-4127-9814-36CB9AB8B744@gmail.com> <871rk6uzbv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="365"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 18 15:39:32 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 1k81ps-000AY6-KG for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Aug 2020 15:39:32 +0200 Original-Received: from localhost ([::1]:49042 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k81pr-0001a4-M5 for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Aug 2020 09:39:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7wPd-0003kY-FI for emacs-devel@gnu.org; Tue, 18 Aug 2020 03:52:05 -0400 Original-Received: from aibo.runbox.com ([91.220.196.211]:56968) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k7wPa-000616-7A for emacs-devel@gnu.org; Tue, 18 Aug 2020 03:52:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.no; s=selector2; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:To:From; bh=Cljz992ZHhfVVKIDiBJn44Mptn2xtfOmlQPiBqf9JZ0=; b=QbVhLOZEEBAv40ZdpKaLke/iI4iYHL6jyNbA8aYvYRtXkxI5vW3p6pW1gm3AuiG1QSHhnH7rf1 IOSI06Glo9DMLljQ4NYBmcKsmKAWHjCK9ggQ7Q9lLOThnh9ZzlYmiVV8gQsRRRDw8dOvmeK1Aa+Et E3ZNzLjT0f7A6xMovW25ZW7ErFHUVy0HxiQLkRqIKYjARkFW0uW4UBfB2f+ynGsOZyXLM1vXgp+Rb 34dbHb95jUpLpXvkI8xHY3CTGoSX18puzA6DGCBBP/EgrcKxDTXy25iEf24sQ7mgshGxjh8Nx16fn lyxuydWHa2zU4a2ErDW7LW5oMCotgMaWoGZqQ==; Original-Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1k7wPV-00059M-Pu for emacs-devel@gnu.org; Tue, 18 Aug 2020 09:51:57 +0200 Original-Received: by submission02.runbox with esmtpsa [Authenticated alias (9149)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1k7wPN-0000k6-8u for emacs-devel@gnu.org; Tue, 18 Aug 2020 09:51:49 +0200 In-Reply-To: <871rk6uzbv.fsf@gnu.org> (Amin Bandali's message of "Sun, 16 Aug 2020 16:10:12 -0400") Received-SPF: pass client-ip=91.220.196.211; envelope-from=horrigmo@runbox.no; helo=aibo.runbox.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/18 03:51:58 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 18 Aug 2020 09:38:46 -0400 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:253945 Archived-At: Amin Bandali writes: > Of the packages that aim to do this, I liked the approach of the > "no-littering" package like the most. Essentially, it designates two > directories, one for config files and another for persistent data files, > defaulting to "etc/" and "var/" under the `user-emacs-directory' > respectively. It then changes the directory/file location settings for > many packages, dividing up each package's files into one of the two > general categories. If a package stores multiple files of the same > category, no-littering creates a directory under that category with the > package name to keep those files together. > > If we were to tackle this in Emacs itself, maybe we could have two > defcustoms `user-config-directory' and `user-data-directory', defaulting > to "etc/" and "var/" in `user-emacs-directory'. Would it not be better to follow the freedesktop spec? https://specifications.freedesktop.org/basedir-spec/basedir-spec-0.6.html -- Gunnar