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.help Subject: Re: How to make emacs stop trying to load /home/sb/.emacs after su to root? Date: Fri, 12 Jul 2019 18:11:56 +0200 Message-ID: <86muhjw7ub.fsf@dod.no> References: <864l3w18ae.fsf@dod.no> <86bly0xxit.fsf@dod.no> <867e8oxx2q.fsf@dod.no> <3D7E0823-F1A4-4C32-8177-143BF1736B6C@easesoftware.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="170399"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (windows-nt) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 12 18:12:19 2019 Return-path: Envelope-to: geh-help-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 1hly9h-000iCc-SW for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jul 2019 18:12:17 +0200 Original-Received: from localhost ([::1]:51032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hly9g-00013j-Ux for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jul 2019 12:12:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45038) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hly9d-00011j-77 for help-gnu-emacs@gnu.org; Fri, 12 Jul 2019 12:12:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hly9c-0008V9-4t for help-gnu-emacs@gnu.org; Fri, 12 Jul 2019 12:12:13 -0400 Original-Received: from cadalora.default.sbang.uk0.bigv.io ([46.43.15.90]:42054 helo=cadalora.bang.priv.no) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hly9b-00081Z-V6 for help-gnu-emacs@gnu.org; Fri, 12 Jul 2019 12:12:12 -0400 Original-Received: from mccoy (cm-84.212.50.160.getinternet.no [84.212.50.160]) by cadalora.bang.priv.no (Postfix) with ESMTPSA id B191ACDF2E for ; Fri, 12 Jul 2019 17:11:54 +0100 (BST) In-Reply-To: <3D7E0823-F1A4-4C32-8177-143BF1736B6C@easesoftware.com> (Perry Smith's message of "Thu, 11 Jul 2019 21:56:17 -0500") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 46.43.15.90 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121162 Archived-At: >>>>> Perry Smith : > You said this is new behavior. Are you sure of that?=20 Compared to emacs 25 on debian 9.9, this is new behaviour. I'm sure of this because I have a computer still debian 9.9 and mosh in and /bin/su and then start emacs is something I do a lot, and I did that in a different window at the same time as I had the issues on debian 10. I don't think this is something the debian maintainers have changed. (and no, it doesn't have anything to do with mosh. It works the same way with SSH. I can't try on the console, because it's a VPS without a console ) And the difference is more drastic than it would appear to be, because emacs loads the .emacs file in my home directory, and then fails miserably because that confif files expects a lot of emacs packages that emacs is unable to find (ie. it does not use the packages under the original user, ie. ~sb/.emacs.d/elpa/ ). So... the resulting emacs starts up in a broken middle-of-configuration state. It does not have my own user's complete configuration. And it does not have user root's perfectly valid (but far less extensive) configuration (it mainly configures stuff that annoys me, such as the default of splitting windows vertically). > The page your reference seems all perfectly normal way things work. Actually it doesn't work (see the above paragraphs). Of course I can *make* it work by typing "/bin/su - root" instead of "/bin/su", but the need to do so... annoys me deeply. > Last, in another email you said that if you =E2=80=9Csu - root=E2=80=9D, = then it is > set to =E2=80=9C=E2=80=9D. That seems weird too. Is that before ~root/.= emacs.el > et. al. doesn=E2=80=99t exist? I don't understand the question...? ~sb/.emacs exists ~root/.emacs also exists (but is far less extensive than ~sb/.emacs)=20 (and they both exists both before and after emacs is started... have existed for years, in fact...)