all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#47298: Emacs creates HOME if it does not exist
@ 2021-03-21 17:40 Glenn Morris
  2021-03-21 19:03 ` Andreas Schwab
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Glenn Morris @ 2021-03-21 17:40 UTC (permalink / raw)
  To: 47298; +Cc: eggert

Package: emacs
Version: 27.1
Severity: minor

Assuming /tmp/foo does not exist:

HOME=/tmp/foo emacs-26.3

Emacs starts, but displays a warning:
  
  Warning (initialization): Unable to create `user-emacs-directory' (~/.emacs.d/).
  Any data that would normally be written there may be lost!
  If you never want to see this message again,
  customize the variable `user-emacs-directory-warning'.
  Error (initialization): User someuser has no home directory


With Emacs 27.1, HOME is silently created.
(Only interactively; this does not happen in batch mode.)

I assume a4144af909, which added the PARENTS argument to the
make-directory call in locate-user-emacs-file, causes this.

IMO the Emacs 26.3 behaviour is correct, and Emacs should not be
creating HOME if it does not exist. One may want to set a non-existent
HOME eg for testing.





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-06-25 15:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-21 17:40 bug#47298: Emacs creates HOME if it does not exist Glenn Morris
2021-03-21 19:03 ` Andreas Schwab
2021-03-22  6:55 ` Jean Louis
2021-03-22 17:29 ` Eli Zaretskii
2021-03-25 18:28   ` Glenn Morris
2021-03-26  9:18     ` Jean Louis
2022-06-25 15:28 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.