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: Sat, 13 Jul 2019 20:04:31 +0200 Message-ID: <86r26tvmj4.fsf@dod.no> References: <864l3w18ae.fsf@dod.no> <86bly0xxit.fsf@dod.no> <867e8oxx2q.fsf@dod.no> <3D7E0823-F1A4-4C32-8177-143BF1736B6C@easesoftware.com> <86muhjw7ub.fsf@dod.no> <86ims7vska.fsf@dod.no> <65013EB6-F949-4F14-8A99-E76518D7AA6A@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="136356"; 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 Sat Jul 13 20:04:56 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 1hmMOF-000ZOf-Pj for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Jul 2019 20:04:55 +0200 Original-Received: from localhost ([::1]:57588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmMOE-0006IX-Pn for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Jul 2019 14:04:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48481) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmMOA-0006HB-1i for help-gnu-emacs@gnu.org; Sat, 13 Jul 2019 14:04:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hmMO9-0006aL-38 for help-gnu-emacs@gnu.org; Sat, 13 Jul 2019 14:04:49 -0400 Original-Received: from cadalora.default.sbang.uk0.bigv.io ([2001:41c9:1:424::90]:42652 helo=cadalora.bang.priv.no) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hmMO8-0006Lr-TI for help-gnu-emacs@gnu.org; Sat, 13 Jul 2019 14:04:49 -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 A7627CD360 for ; Sat, 13 Jul 2019 19:04:32 +0100 (BST) In-Reply-To: <65013EB6-F949-4F14-8A99-E76518D7AA6A@easesoftware.com> (Perry Smith's message of "Sat, 13 Jul 2019 10:04:55 -0500") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:41c9:1:424::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:121169 Archived-At: >>>>> Perry Smith : > You could alias su. Personally I find aliases have problems. So, > what I find better are small trivial functions (assuming you are using > bash/ksh/=E2=80=A6) that changes the command you like to type into the co= mmand > that =E2=80=9Cworks=E2=80=9D (by your definition of =E2=80=9Cworks=E2=80= =9D) Thanks! My definition of "works" is "starting up without an error message because emacs can't find all of the things referred to in the .emacs file picked by emacs". :-)