From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#36583: 26.1; emacs 26 tries loading original user's .emacs after su to root Date: Tue, 23 Jul 2019 10:30:27 -0400 Message-ID: References: <87ims94p6p.fsf@dod.no> <86muh4svr3.fsf@dod.no> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="63750"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , 36583@debbugs.gnu.org, Richard Stallman To: Steinar Bang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 23 16:31:09 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1hpvop-000GP4-Tz for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Jul 2019 16:31:08 +0200 Original-Received: from localhost ([::1]:42962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpvoo-0003k8-Nd for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Jul 2019 10:31:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51220) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpvol-0003k1-SI for bug-gnu-emacs@gnu.org; Tue, 23 Jul 2019 10:31:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hpvok-0005cx-Sg for bug-gnu-emacs@gnu.org; Tue, 23 Jul 2019 10:31:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54891) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hpvok-0005cs-Pn for bug-gnu-emacs@gnu.org; Tue, 23 Jul 2019 10:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hpvok-0000AD-Jz for bug-gnu-emacs@gnu.org; Tue, 23 Jul 2019 10:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Jul 2019 14:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36583 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix notabug Original-Received: via spool by 36583-submit@debbugs.gnu.org id=B36583.1563892235581 (code B ref 36583); Tue, 23 Jul 2019 14:31:02 +0000 Original-Received: (at 36583) by debbugs.gnu.org; 23 Jul 2019 14:30:35 +0000 Original-Received: from localhost ([127.0.0.1]:35479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpvoJ-00009J-HG for submit@debbugs.gnu.org; Tue, 23 Jul 2019 10:30:35 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:34388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpvoI-000094-Jb for 36583@debbugs.gnu.org; Tue, 23 Jul 2019 10:30:35 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 338928119A; Tue, 23 Jul 2019 10:30:29 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 242428007A; Tue, 23 Jul 2019 10:30:28 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1563892228; bh=iqg8WKnuZCampI4k84D21xBGgaPPBNnGTCcpVp7j39o=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=o49KJJkKW9/e3NhFbfiqq2NOByvzkYpeeQxKZ1gxBvy25pRD9bpnLk7Vhp6b5m8QK /pdgz+Fk6UVm+yyr94ck3gFlo1xDpsJRmOZTwi623fYonLq6ymf5kcoyqDuiCFkBjj KGGMNGaG4ZsFZsSTwKXPfaTDN8c5VwRwIyLH5G7TpubzpKklJ3wZacbEtgfYAqT1lS 0AuU6xzy4qc00WL9VzSD6dkBguCcceKNwLO7c8g5FUDOa9PmZBfBLMfRcfNXOE2PfF Vd6rj4ONRA9JIudOm8ktiL5NHQS5iQ2WIGI+X7AoamCe33hKOZ0jRDdnOsN3Jb22Jb gIIMcyCGcC+dw== Original-Received: from alfajor (modemcable157.163-203-24.mc.videotron.ca [24.203.163.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id EC32C12081D; Tue, 23 Jul 2019 10:30:27 -0400 (EDT) In-Reply-To: <86muh4svr3.fsf@dod.no> (Steinar Bang's message of "Tue, 23 Jul 2019 15:53:04 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:163631 Archived-At: > FWIW What broke things for me, was that it reads the .emacs file from > /home/sb directory, but it doesn't read /home/sb/.emacs.d/elpa/ and > therefore doesn't find the packages my .emacs refers to, so that startup > breaks in the middle of the setup and nothing works as expected. Indeed, as a first-approximation, it uses "~$LOGNAME/.emacs" but "$HOME/.emacs.d/elpa/". In many circumstances "~$LOGNAME/" is the same as "$HOME/", and in yet other circumstances Emacs uses "$HOME/.emacs" (which I find very handy) rather than "~$LOGNAME/.emacs". I'd rather we drop this special case of using "~$LOGNAME/.emacs" when we decide that we're in "su". I know it's long standing behavior, but there are many other ways for the user to get the same result, so I think we can get rid of this dangerous quirk. Stefan