From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Elias_M=C3=A5rtenson?= Newsgroups: gmane.emacs.devel Subject: Default emacs init file location confusion Date: Tue, 7 Jan 2020 10:51:49 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000355a76059b83dc9c" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="148514"; mail-complaints-to="usenet@blaine.gmane.org" To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 07 03:53:35 2020 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 1ioezv-000cVl-3v for ged-emacs-devel@m.gmane.org; Tue, 07 Jan 2020 03:53:35 +0100 Original-Received: from localhost ([::1]:39468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioezs-0006sP-Qx for ged-emacs-devel@m.gmane.org; Mon, 06 Jan 2020 21:53:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53710) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioeyR-0004kt-UL for emacs-devel@gnu.org; Mon, 06 Jan 2020 21:52:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ioeyQ-0004pH-Im for emacs-devel@gnu.org; Mon, 06 Jan 2020 21:52:03 -0500 Original-Received: from mail-io1-xd36.google.com ([2607:f8b0:4864:20::d36]:33472) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ioeyQ-0004nn-Bf for emacs-devel@gnu.org; Mon, 06 Jan 2020 21:52:02 -0500 Original-Received: by mail-io1-xd36.google.com with SMTP id z8so51047062ioh.0 for ; Mon, 06 Jan 2020 18:52:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=UX0F3L4bHhwc7i8qylpCdSfffKced6+N0XnIZNc77bU=; b=VALvX5+tEpvhquloNMZRy4LRXDTUtmr2D9VfMz2G9MZd+v2mPahiFlrSH3X8o1+3CO n+s1pgLEfE83m+L8Gufnaewxtb9WCh1lx/Z4xTFvjJRQO2ENQtjr+qg5C4onxeDYbx8c 9JHetN1WVPY1um+z/7VovmL4dTJD0BAf6EhJFoP/lxzR3D6kAEjvNoWP+Le91x9ZyBxf 1aPU/AW3nSo4VAjY6a2xIW57TgJBqZvzJBDnymc601ibN/lc3SeyMsLVXnCBVbogMECT aVRl4/pzTscagj7qW5+5QcpTaZ66SbwnwLj2V44nvBoERDOUK3zXf1/Xh7/GsuPw3bl2 xVhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=UX0F3L4bHhwc7i8qylpCdSfffKced6+N0XnIZNc77bU=; b=ApRaR80TzJvTvLHZH5JhK57WxsdkMsqIheLt1QZFyPaoINc/0fGUAXpNFSG9KAE6Sj VmRBb0Puat4BkKssqvU2rOHGR2QAK4YQ+dN6FGa1DtGBi/c7JNdXA9t/hd5TMyHWpjgs qJMMQgdqkD8S0tTqPsMAQ4DCqHjAsodHT2uoIFeCe/4qwogC5DivTKFfK7K0Nz3K/aLF fH3mFuRfhLKgBUcXTeKEmySpXb42/WrPByyYcOQUgRZwcPBQidXYyrGLSd3Rpw0YanyD zo2ege1LSd1pXRnCVUfIQkS7r9Dr11ZJGF4w/SYRyiil33uclo0m4Syiq2k2xUkuyltD TXbw== X-Gm-Message-State: APjAAAWbsTxGUFMwi7dt77BSAiTybU3bIZN9h7WhzN5dQcS9uONGW/w3 YNVN5vc8linq680SEZW6+ECnoxWZA7uoV/v1559q5ALz X-Google-Smtp-Source: APXvYqy/e+ZY3KnxmsUxUUh0/ARUsXQCxTsahXgoqhv7YBZCwaU7nIFfKrLu2Jxq+hCWjBH+Cc3nVcpd9AhC6w3LhiQ= X-Received: by 2002:a5d:9ecc:: with SMTP id a12mr73476632ioe.267.1578365521056; Mon, 06 Jan 2020 18:52:01 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::d36 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:244046 Archived-At: --000000000000355a76059b83dc9c Content-Type: text/plain; charset="UTF-8" I recently had a problem which may cause some real issues with user. Please allow me to explain the background: I installed a new computer a couple of days ago (Fedora 31). I started out with an empty home directory and I did not install Emacs from the repositories. Instead, I installed all the build dependencies and built Emacs master from Git. After installing Emacs, and starting it once to check that it worked, I checked out my $HOME/.emacs.d directory from source control and started Emacs. At this point, I noted that my init file was not being loaded. After checking all the obvious things, I remembered seeing something about supporting the XDG standards, and because of this I found a directory $HOME/.config/emacs. This directoriy contained a single file whose name I cannot remember. As far as I can rceall, this file was empty. I deleted this directory and restarted Emacs. At this point my init file was loaded correctly. If I had not known about the XDS stuff, I would have been extremely confused about this behaviour. I don't think it can be expected that users know about this, do this could cause a lot of confusion among people following tutorials for example. I'm guessing that the $HOME/.config/emacs directory was created when I started Emacs before checking out my .emacs.d from source control. Would it make sense to display a warning before creating this directory in the first place, explaining that doing so will prevent $HOME/.emacs.d/init.el from being loaded? Regards, Elias --000000000000355a76059b83dc9c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I recently had a problem which may cause some real is= sues with user. Please allow me to explain the background:
I installed a new computer a couple of days ago (Fedora 31). I= started out with an empty home directory and I did not install Emacs from = the repositories. Instead, I installed all the build dependencies and built= Emacs master from Git.

After installing Emacs, an= d starting it once to check that it worked, I checked out my $HOME/.emacs.d= directory from source control and started Emacs. At this point, I noted th= at my init file was not being loaded.

After checki= ng all the obvious things, I remembered seeing something about supporting t= he XDG standards, and because of this I found a directory $HOME/.config/ema= cs. This directoriy contained a single file whose name I cannot remember. A= s far as I can rceall, this file was empty. I deleted this directory and re= started Emacs. At this point my init file was loaded correctly.
<= br>
If I had not known about the XDS stuff, I would have been ext= remely confused about this behaviour. I don't think it can be expected = that users know about this, do this could cause a lot of confusion among pe= ople following tutorials for example.

I'm = guessing that the $HOME/.config/emacs directory was created when I started = Emacs before checking out my .emacs.d from source control.

Would it make sense to display a warning before creating this dire= ctory in the first place, explaining that doing so will prevent $HOME/.emac= s.d/init.el from being loaded?

Regards,
= Elias
--000000000000355a76059b83dc9c--