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.devel Subject: [Emacs-diffs] master a4144af 1/2: Prefer ~/.config/emacs to ~/.emacs.d if neither exists Date: Fri, 30 Aug 2019 15:34:08 +0300 Message-ID: <83ftlial33.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="114569"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: eggert@cs.ucla.edu (Paul Eggert) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 30 15:23:20 2019 Return-path: Envelope-to: ged-emacs-devel@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 1i3gs3-000Tb4-9B for ged-emacs-devel@m.gmane.org; Fri, 30 Aug 2019 15:23:19 +0200 Original-Received: from localhost ([::1]:58576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3gs1-0002Y4-LG for ged-emacs-devel@m.gmane.org; Fri, 30 Aug 2019 09:23:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37568) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3grU-0002XK-D5 for emacs-devel@gnu.org; Fri, 30 Aug 2019 09:22:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i3grM-0003Bt-Hj; Fri, 30 Aug 2019 09:22:36 -0400 Original-Received: from [176.228.60.248] (port=1360 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i3g6L-00037h-Tm; Fri, 30 Aug 2019 08:34:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239700 Archived-At: branch: master commit a4144af909c3a6baf381659bf158e254b28ee002 Author: Paul Eggert Commit: Paul Eggert Prefer ~/.config/emacs to ~/.emacs.d if neither exists That way, when Emacs starts in a fresh home directory, it prefers the new (XDG) convention rather than the old one. * lisp/files.el (locate-user-emacs-file): Make the parent directories of user-emacs-directory if needed. This is useful if user-emacs-directory is "~/.config/emacs" and "~/.config" does not yet exist. * lisp/startup.el (command-line): * lisp/subr.el (user-emacs-directory): Prefer XDG_CONFIG_HOME to ~/.emacs.d if neither exists. We never discussed such a change, and I'm not sure I personally agree with it. XDG and its ~/.config directory is just one convention; why should we go after it by default, when there's no XDG setup visible anywhere in sight? Why should we force this convention on platforms other than GNU/Linux? That doesn't sound right to me. Please don't make such changes without discussing them first. And let's talk about this one now, before the related changes spread too wide and too far (as I see emacsclient already did).