From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: user-directory: New library to find user {conf, data, state, ...} files Date: Sun, 07 Nov 2021 21:52:43 +0200 Message-ID: <83wnlj7ng4.fsf@gnu.org> References: <83sfwp1c27.fsf@gnu.org> <83sfwnyi65.fsf@gnu.org> <83k0hzydcg.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30464"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 07 20:55:02 2021 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 1mjoFp-0007h5-SA for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Nov 2021 20:55:02 +0100 Original-Received: from [::1] (port=34986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mjoFo-00051W-Mw for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Nov 2021 14:55:00 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56316) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjoDp-0003M0-Ft for emacs-devel@gnu.org; Sun, 07 Nov 2021 14:52:57 -0500 Original-Received: from [2001:470:142:3::e] (port=54294 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjoDo-0000s6-Pt; Sun, 07 Nov 2021 14:52:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=MQe5r1e3fRmhyhh8Z1bnyKd+/hgL3chAvx0ObI0xjIM=; b=fTQdFvoUyiZd 3JYcs/ybd/CtY5kAn/yXzDtaRpxJEkdVgHVGO72B/tMrbaL/lblSOkHS47/0uu4GrHLJq6J0muatv TC0sgkpAdFul0iFKmutq/C8+kkFVx76e0Gk0lNTNJbFNRzbT+Zs6PBLbSNmRjlWgDuzm9yKncJoEY oeeuZUIJnRu8iuTbo6e5DiKmeEVVV87woaSIJ/PANiwZWGqBp0Tt4+VfKre7Vo/NCjUF6W26K1iPT jrTQfSOBwXLyUBeQy/YZ189xXN/gRbJ7tCMa1IiLnGSk+ThtdMSXTVwFkFsKp6MJ/WJv6U+jgAgAC 2UQcvjEJj7PwkrZHZ7Q7bg==; Original-Received: from [87.69.77.57] (port=4203 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjoDo-00010K-Br; Sun, 07 Nov 2021 14:52:56 -0500 In-Reply-To: (message from Stefan Kangas on Sun, 7 Nov 2021 11:31:50 -0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:278980 Archived-At: > From: Stefan Kangas > Date: Sun, 7 Nov 2021 11:31:50 -0800 > Cc: emacs-devel@gnu.org > > Note that on GNU/Linux, even if the user has their configuration file in > "~/.emacs.d/", the library currently prefers the XDG paths here: > > (user-file 'cache "image-dired") > => "~/.cache/emacs/image-dired" > > This is a feature. If users prefer not to have a clean "~/.emacs.d/" > they can say: > > (setq user-directory-alist '((cache . user-emacs-directory) > (config . user-emacs-directory) > (data . user-emacs-directory) > (runtime . user-emacs-directory) > (state . user-emacs-directory))) This contradicts how Emacs by default finds the init file: its preference is the other way around, and it sets user-emacs-directory according to the directory from which it loaded the init file. I don't think I understand why this package should behave differently by default (it could do that as an opt-in option, of course, if that is considered useful to someone).