From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Steinar Bang 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 15:53:04 +0200 Message-ID: <86muh4svr3.fsf@dod.no> References: <87ims94p6p.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="172784"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (windows-nt) Cc: Lars Ingebrigtsen , 36583@debbugs.gnu.org, monnier@iro.umontreal.ca To: Richard Stallman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 23 15:54: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 1hpvF0-000ik6-QE for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Jul 2019 15:54:06 +0200 Original-Received: from localhost ([::1]:42658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpvEz-0007Bu-Kc for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Jul 2019 09:54:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40335) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpvEw-0007AV-Up for bug-gnu-emacs@gnu.org; Tue, 23 Jul 2019 09:54:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hpvEv-0006OQ-UN for bug-gnu-emacs@gnu.org; Tue, 23 Jul 2019 09:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53580) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hpvEv-0006OI-Qe for bug-gnu-emacs@gnu.org; Tue, 23 Jul 2019 09:54:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hpvEv-0007OS-Ma for bug-gnu-emacs@gnu.org; Tue, 23 Jul 2019 09:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Steinar Bang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Jul 2019 13:54:01 +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.156388998328342 (code B ref 36583); Tue, 23 Jul 2019 13:54:01 +0000 Original-Received: (at 36583) by debbugs.gnu.org; 23 Jul 2019 13:53:03 +0000 Original-Received: from localhost ([127.0.0.1]:34165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpvDz-0007N3-9L for submit@debbugs.gnu.org; Tue, 23 Jul 2019 09:53:03 -0400 Original-Received: from cadalora.default.sbang.uk0.bigv.io ([46.43.15.90]:56610 helo=cadalora.bang.priv.no) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpvDw-0007MY-CR for 36583@debbugs.gnu.org; Tue, 23 Jul 2019 09:53:01 -0400 Original-Received: from mccoy (89-162-51-160.fiber.signal.no [89.162.51.160]) by cadalora.bang.priv.no (Postfix) with ESMTPSA id C7FFFCD46B; Tue, 23 Jul 2019 14:52:53 +0100 (BST) In-Reply-To: (Richard Stallman's message of "Fri, 12 Jul 2019 19:39:49 -0400") 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:163630 Archived-At: >>>>> Richard Stallman : > I think I asked for this feature so that when I run Emacs as root I > will get the commands I am accustomed to. 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. If it had used my regular config fully, I never would have noticed. The root user has a functional .emacs, but a much slimmer one. I've basically customized away the behaviour I dislike. Either .emacs (ie. /home/sb/.emacs or /root/.emacs) would have worked for me if they could have run without failing. (PS sorry for coming late to the discussion I originated. My incoming email broke as a result of an openssl change in a debian version upgrade and I haven't received email since July 11 until today, and didn't receive the initial debbug response. And sorry if I came through as rude on emacs-help)