From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#583: Use XDG basedir spec for configuration files? Date: Thu, 29 Aug 2019 10:03:53 +0300 Message-ID: <83mufsbgh2.fsf@gnu.org> References: <83zhjtb6di.fsf@gnu.org> <83y2zdb43x.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="128849"; mail-complaints-to="usenet@blaine.gmane.org" Cc: ferkiwi+a@gmail.com, eggert@cs.ucla.edu, 583@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 29 09:04:23 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i3ETn-0006IK-85 for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Aug 2019 09:04:23 +0200 Original-Received: from localhost ([::1]:46072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3ETl-0000Mp-Pd for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Aug 2019 03:04:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42263) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3ETT-0000MV-K3 for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2019 03:04:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i3ETS-0008I1-KD for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2019 03:04:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42701) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i3ETS-0008Hc-GC for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2019 03:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i3ETS-0003b2-AK for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2019 03:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Aug 2019 07:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 583 X-GNU-PR-Package: emacs Original-Received: via spool by 583-submit@debbugs.gnu.org id=B583.156706223813815 (code B ref 583); Thu, 29 Aug 2019 07:04:02 +0000 Original-Received: (at 583) by debbugs.gnu.org; 29 Aug 2019 07:03:58 +0000 Original-Received: from localhost ([127.0.0.1]:51522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3ETO-0003ak-En for submit@debbugs.gnu.org; Thu, 29 Aug 2019 03:03:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3ETM-0003aX-Af for 583@debbugs.gnu.org; Thu, 29 Aug 2019 03:03:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i3ETG-00088N-Rb; Thu, 29 Aug 2019 03:03:50 -0400 Original-Received: from [176.228.60.248] (port=4181 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i3ETD-0006AW-Jq; Thu, 29 Aug 2019 03:03:48 -0400 In-reply-to: (message from Glenn Morris on Wed, 28 Aug 2019 22:17:55 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:173344 > From: Glenn Morris > Cc: 583@debbugs.gnu.org, ferkiwi+a@gmail.com, eggert@cs.ucla.edu > Date: Wed, 28 Aug 2019 22:17:55 -0400 > > IMO a true conversion of Emacs to the XDG spec would involve the > addition of new variables (user-config-directory, user-data-directory, > user-cache-directory, etc). Each use of user-emacs-directory would have > to be reviewed to see where it actually belongs. For some, it would > probably be ambiguous. I'm afraid almost all of them will be ambiguous. Moreover, defining a clear enough set of rules for where to put files that will be added in the future is a non-trivial job, and enforcing it will not be easy. I predict confusion and arguments. My gut feeling is that Emacs should have one, at most 2 XDG-derived directories, certainly not 3. And if we want to support that correctly, these environment variables should be accessed much earlier in the startup process, somewhere in init_callproc and friends, because setting user-emacs-directory in startup is too late and creates problems, as we saw already. We've made a small step in that direction; if we want to continue that way, someone should volunteer to do the job of defining what files will go were.