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: Thu, 25 Mar 2021 14:28:20 -0400 Message-ID: References: <20lfag5rru.fsf@fencepost.gnu.org> <83wntz9jws.fsf@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="24972"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cc: 47298@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 25 19:29:29 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 1lPUjY-0006Ls-IW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Mar 2021 19:29:28 +0100 Original-Received: from localhost ([::1]:59816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPUjX-0002tQ-Hl for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Mar 2021 14:29:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPUj8-0002ZY-Ja for bug-gnu-emacs@gnu.org; Thu, 25 Mar 2021 14:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56264) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lPUj8-00080n-5s for bug-gnu-emacs@gnu.org; Thu, 25 Mar 2021 14:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lPUj8-0007Sv-2p for bug-gnu-emacs@gnu.org; Thu, 25 Mar 2021 14:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Mar 2021 18:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47298 X-GNU-PR-Package: emacs Original-Received: via spool by 47298-submit@debbugs.gnu.org id=B47298.161669692128661 (code B ref 47298); Thu, 25 Mar 2021 18:29:02 +0000 Original-Received: (at 47298) by debbugs.gnu.org; 25 Mar 2021 18:28:41 +0000 Original-Received: from localhost ([127.0.0.1]:39576 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPUin-0007SD-F9 for submit@debbugs.gnu.org; Thu, 25 Mar 2021 14:28:41 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPUil-0007S1-Ts for 47298@debbugs.gnu.org; Thu, 25 Mar 2021 14:28:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57314) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPUig-0007kO-Nh for 47298@debbugs.gnu.org; Thu, 25 Mar 2021 14:28:34 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1lPUiS-00041O-Bf; Thu, 25 Mar 2021 14:28:22 -0400 X-Spook: Ruby Ridge MYK Epidemic Eco terrorism Coderpunks Pandemic X-Ran: Jq>x,;#ciV1`m")^B8E'9p"[OJ6'GW7D^,+g#FaouzsHv:zLwTv`,#JAax?5"tVX+U<\_4 X-Hue: brightcyan X-Attribution: GM In-Reply-To: <83wntz9jws.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 22 Mar 2021 19:29:23 +0200") 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:203019 Archived-At: Eli Zaretskii wrote: >> From: Glenn Morris >> Date: Sun, 21 Mar 2021 13:40:53 -0400 >> >> IMO the Emacs 26.3 behaviour is correct, and Emacs should not be >> creating HOME if it does not exist. > > I'm not sure I agree with you. What do other programs do in this > situation? Dunno. IMO applications should not be creating HOME, that is a system-level responsibility. Missing HOME indicates either a deliberate choice, or a system-level problem that the application should not try to fix (in most cases, it won't even have permission to do so) but should just report. > And if we don't create ~/.emacs.d, how can we save user's > customizations? You don't, you give a warning. > That might mean we need to find other ways of isolating tests from > user customizations. Your only alternative is to have the test machinery make a temporary but existing HOME and ensure it is deleted afterwards. But IMO that is a separate issue. Even if that change is made, I still don't believe Emacs should create HOME.