unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Elias Mårtenson" <lokedhs@gmail.com>
Cc: rpluim@gmail.com, smartlitchi@gmail.com, emacs-devel@gnu.org
Subject: Re: Default emacs init file location confusion
Date: Tue, 07 Jan 2020 19:21:09 +0200	[thread overview]
Message-ID: <837e23chdm.fsf@gnu.org> (raw)
In-Reply-To: <CADtN0WK2qdd8oubW5DuJrhNydP+U1o_P8WAdHyMy2sjKLWEXkA@mail.gmail.com> (message from Elias Mårtenson on Wed, 8 Jan 2020 01:11:37 +0800)

> From: Elias Mårtenson <lokedhs@gmail.com>
> Date: Wed, 8 Jan 2020 01:11:37 +0800
> Cc: Robert Pluim <rpluim@gmail.com>, smartlitchi@gmail.com, 
> 	emacs-devel <emacs-devel@gnu.org>
> 
> The confusion is that once I start Emacs without any configuration, the $HOME/.config/emacs will be created,
> and after that the $HOME/.emacs.d will never be used, even though I don't actually have a configuration yet.
> All I did was to start Emacs once.

But Emacs did that with ~/.emacs.d/ as well: it would create it if it
didn't exist when you first started.  It did that silently without any
warning.  How is this situation different?

The way to prevent the above is described in NEWS, btw.

> I don't think the $HOME/.config/emacs should be created until there is actually a configuration to save. Or,
> alternatively, before the user have confirmed where they want the configuration directory to be created.

I'm not sure this is practical: there must be gazillion places where
we assume that directory exists.  E.g., what about auto-saving? we
could defer the creation of the directory until we actually call
do-auto-save, but that will only buy us what, 30 sec?

> Since the $HOME/.config behaviour is new, it will not be easy for them to figure out why nothing works and
> they will give up, perhaps never trying Emacs again.

We need to decide which directory to create if neither of the 2
candidates exist.  Previously, we had only one candidate, and we'd
create it without any regrets.  I don't think I see how the current
situation is suddenly different.  Moreover, I don't think I understand
how to do something smarter, without breaking gobs of code that
depends on user-emacs-directory be existing.  Ideas welcome.



  reply	other threads:[~2020-01-07 17:21 UTC|newest]

Thread overview: 90+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-07  2:51 Default emacs init file location confusion Elias Mårtenson
2020-01-07  3:32 ` Eli Zaretskii
2020-01-07  3:40   ` Elias Mårtenson
2020-01-07  4:40     ` Eli Zaretskii
2020-01-07 14:43       ` Lawrence Liu
2020-01-07 15:26         ` Robert Pluim
2020-01-07 16:12           ` Eli Zaretskii
2020-01-07 16:25             ` Robert Pluim
2020-01-07 17:04               ` Eli Zaretskii
2020-01-07 17:11                 ` Elias Mårtenson
2020-01-07 17:21                   ` Eli Zaretskii [this message]
2020-01-07 17:33                     ` Elias Mårtenson
2020-01-07 17:37                       ` Eli Zaretskii
2020-01-08  5:28                         ` Mingde (Matthew) Zeng
2020-01-08  5:33                           ` Elias Mårtenson
2020-01-08  7:22                             ` Eli Zaretskii
2020-01-08 10:05                               ` Elias Mårtenson
     [not found]                               ` <m2eewajram.fsf@gmail.com>
2020-01-08 10:05                                 ` Eli Zaretskii
2020-01-08 10:13                                   ` Elias Mårtenson
2020-01-08 10:22                                   ` Robert Pluim
2020-01-08 10:49                                     ` Eli Zaretskii
2020-01-08 12:37                                       ` Robert Pluim
2020-01-08 13:51                                         ` Stefan Monnier
2020-01-08 15:58                                           ` Eli Zaretskii
2020-01-08 16:28                                             ` Stefan Monnier
2020-01-08 16:32                                               ` Eli Zaretskii
2020-01-08 16:41                                                 ` Mingde (Matthew) Zeng
2020-01-08 16:49                                                   ` Robert Pluim
2020-01-08 17:01                                                     ` Eli Zaretskii
2020-01-08 17:25                                                       ` Robert Pluim
2020-01-08 17:35                                                         ` Eli Zaretskii
2020-01-08 17:44                                                           ` Robert Pluim
2020-01-08 17:56                                                             ` Yuan Fu
2020-01-08 18:03                                                               ` Robert Pluim
2020-01-09  2:27                                                                 ` Yuan Fu
2020-01-08 18:07                                                             ` Eli Zaretskii
2020-01-08 18:12                                                               ` Robert Pluim
2020-01-08 18:19                                                                 ` Eli Zaretskii
2020-01-08 19:45                                                                   ` Stefan Monnier
2020-01-08 20:03                                                                     ` Eli Zaretskii
2020-01-10 16:57                                                     ` Eli Zaretskii
2020-01-11  1:46                                                       ` Paul Eggert
2020-01-11  7:58                                                         ` Eli Zaretskii
2020-01-11 15:43                                                         ` Drew Adams
2020-01-11 16:16                                                         ` Stefan Monnier
2020-01-11 18:08                                                           ` Eli Zaretskii
2020-01-13  7:53                                                         ` Robert Pluim
2020-01-13 14:36                                                           ` Robert Pluim
2020-01-13 15:27                                                             ` Colin Baxter
2020-01-13 15:37                                                               ` Robert Pluim
2020-01-13 15:58                                                                 ` Colin Baxter
2020-01-13 16:05                                                                   ` Robert Pluim
2020-01-13 16:42                                                                   ` Eli Zaretskii
2020-01-13 16:59                                                                     ` Colin Baxter
2020-01-13 17:06                                                                       ` Robert Pluim
2020-01-13 17:21                                                                         ` Colin Baxter
2020-01-13 16:15                                                             ` Eli Zaretskii
2020-01-13 16:39                                                               ` Robert Pluim
2020-01-14 14:00                                                                 ` Robert Pluim
2020-01-14 16:05                                                                   ` Eli Zaretskii
2020-01-15 13:03                                                                     ` Robert Pluim
2020-01-15 17:32                                                                       ` Eli Zaretskii
2020-01-16  7:35                                                                         ` Robert Pluim
2020-01-16 15:02                                                                           ` Eli Zaretskii
2020-01-16 15:08                                                                             ` Robert Pluim
2020-01-13 16:52                                                             ` Stefan Kangas
2020-01-13 16:17                                                           ` Eli Zaretskii
2020-01-13 16:29                                                             ` Robert Pluim
2020-01-08 23:26                                           ` chad
2020-01-08 23:32                                             ` Stefan Monnier
2020-01-09  3:34                                               ` Eli Zaretskii
2020-01-09  1:26                                             ` HaiJun Zhang
2020-01-09  5:07                                               ` 황병희
2020-01-08 11:03                                   ` Mario Lang
2020-01-08 15:56                                     ` Eli Zaretskii
2020-01-08  8:04                             ` Robert Pluim
2020-01-07 17:57                     ` Stefan Monnier
2020-01-07 18:08                       ` Stefan Monnier
2020-01-07 18:09                       ` Eli Zaretskii
2020-01-07 18:41                         ` Stefan Monnier
2020-01-07 18:57                           ` Yuan Fu
2020-01-07 19:15                             ` Greg Farough
2020-01-07 20:11                               ` Andrea Corallo
2020-01-07 18:53                         ` Yuan Fu
2020-01-07 17:12                 ` Yuan Fu
2020-01-07 17:26                   ` Elias Mårtenson
2020-01-07  3:46   ` Mingde (Matthew) Zeng
2020-01-07  3:50     ` Elias Mårtenson
2020-01-07  3:43 ` VanL
2020-01-07  3:51   ` Elias Mårtenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=837e23chdm.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=lokedhs@gmail.com \
    --cc=rpluim@gmail.com \
    --cc=smartlitchi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).