From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: xdg-directories.el Date: Wed, 07 Sep 2016 20:32:27 +0300 Message-ID: <837fanaa50.fsf@gnu.org> References: <83shtbaj4b.fsf@gnu.org> <83inu7aeo5.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1473269607 21056 195.159.176.226 (7 Sep 2016 17:33:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 7 Sep 2016 17:33:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: "francisco.colaco\@gmail.com" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 07 19:33:23 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhgio-00045Z-Ki for ged-emacs-devel@m.gmane.org; Wed, 07 Sep 2016 19:33:14 +0200 Original-Received: from localhost ([::1]:42208 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhgim-0006YP-Kx for ged-emacs-devel@m.gmane.org; Wed, 07 Sep 2016 13:33:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhgib-0006VS-Q6 for emacs-devel@gnu.org; Wed, 07 Sep 2016 13:33:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhgiV-0005ec-Q4 for emacs-devel@gnu.org; Wed, 07 Sep 2016 13:33:00 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhgiV-0005eU-MC; Wed, 07 Sep 2016 13:32:55 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2215 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bhgiR-0004JV-Tl; Wed, 07 Sep 2016 13:32:54 -0400 In-reply-to: (francisco.colaco@gmail.com) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:207262 Archived-At: > From: "francisco.colaco@gmail.com" > Date: Wed, 7 Sep 2016 17:13:43 +0100 > Cc: Emacs developers > > I can implement the functions for Windows and OSX. Thanks. However, I don't see your copyright assignment on file, so unless it's in the works, perhaps you shouldn't do that yet. > But we do have a problem: once this is implemented for all operating systems, XDG will become a > meaningless package name and prefix. Maybe we should not have a prefix at all and find sensible names not > used by Emacs at the moment. I don't follow this logic. Being able to locate the "My Documents" directory on Windows has nothing to do with XDG. The package will simply use that as fallback on Windows, if XDG_HOME etc. is not found in the environment. So the package will still have its place, I think. Beyond that, as I wrote earlier, places that are used by core Emacs features, like user-emacs-directory, will have to be defined in preloaded files, outside of the XDG package. > 1. (locate-user-emacs-config-file "init.el") > 2. (locate-user-emacs-file "init.el") > 3. ~/.emacs.d/init.el > 4. ~/.emacs (and the rest of the present order, like terminal specific files). > > Would that seem sensible to you? I think so, but I'm not an expert on XDG related stuff. We should also think whether we need to do anything if we find more than one init.el in these places.