From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#47298: Emacs creates HOME if it does not exist Date: Sun, 21 Mar 2021 13:40:53 -0400 Message-ID: <20lfag5rru.fsf@fencepost.gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15291"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cc: eggert@cs.ucla.edu To: 47298@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 21 18:42:13 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lO25d-0003rx-2U for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Mar 2021 18:42:13 +0100 Original-Received: from localhost ([::1]:38052 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lO25c-0003tN-4q for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Mar 2021 13:42:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42366) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO25V-0003tC-LO for bug-gnu-emacs@gnu.org; Sun, 21 Mar 2021 13:42:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43889) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lO25T-0008MB-GZ for bug-gnu-emacs@gnu.org; Sun, 21 Mar 2021 13:42:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lO25S-00010M-Bp; Sun, 21 Mar 2021 13:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: eggert@cs.ucla.edu, bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Mar 2021 17:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47298 X-GNU-PR-Package: emacs X-Debbugs-Original-To: submit@debbugs.gnu.org X-Debbugs-Original-Xcc: ) id 1lO24X-0000yc-Du for submit@debbugs.gnu.org; Sun, 21 Mar 2021 13:41:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49208) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lO24W-0000y2-FY for submit@debbugs.gnu.org; Sun, 21 Mar 2021 13:41:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42681) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lO24R-0007td-7Z for submit@debbugs.gnu.org; Sun, 21 Mar 2021 13:40:59 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1lO24L-0003hA-HS; Sun, 21 Mar 2021 13:40:55 -0400 X-Spook: rs9512c covert video JFK dictionary MD5 NCCS COS DNDO X-Ran: o|&s$|X"OBS;^LrFx(fpw~vS4}<\aI5!Q?(|>KE!`c'&~!c'aLM$cwU]7}Y-n_D~uKxs2$ X-Hue: blue X-Attribution: GM X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:202794 Archived-At: 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.