From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Boettcher Newsgroups: gmane.emacs.help Subject: Re: broken .emacs file Date: Tue, 09 Sep 2003 17:40:15 -0400 Organization: MIT Lincoln Laboratory Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1063147415 13584 80.91.224.253 (9 Sep 2003 22:43:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Sep 2003 22:43:35 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 10 00:43:33 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19wrCv-0003IS-00 for ; Wed, 10 Sep 2003 00:43:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19wrAD-0008Hh-1Y for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Sep 2003 18:40:45 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newspeer.monmouth.com!newsfeed.mathworks.com!nycmny1-snh1.gtei.net!cambridge1-snf1.gtei.net!news.gtei.net!llslave.llan.ll.mit.edu!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:cA7SDanDSiOMUPjzi34dszmlhLo= Original-Lines: 30 Original-NNTP-Posting-Host: 155.34.163.111 Original-X-Complaints-To: news@ll.mit.edu Original-X-Trace: llslave.llan.ll.mit.edu 1063143615 155.34.163.111 (Tue, 09 Sep 2003 17:40:15 EDT) Original-NNTP-Posting-Date: Tue, 09 Sep 2003 17:40:15 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:116486 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:12405 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12405 Dan Anderson writes: > I did something very silly. I wanted to apply my .emacs file from my > personal user to my superuser, so just did a: #cp -f /home/daniel/.emac* > /root > > This messed things up royally though, and rm -fR /root/.emac* doesn't > seem to help (or it just breaks more things). > > Is there a command like M-x blank-.emacs-file? Is it possible you are doing this: dan$ su Password: ***** dan$ emacs Then emacs reads /home/dan/.emacs, but expands ~ internally as /root. So you might add ~/emacs-lisp to your load path, which is now not /home/dan/emacs-lisp, but /root/emacs-lisp, which may or may not exist. This causes breakage. I don't know what the fix for this might be, except to not run emacs like that. Try su - instead. Sorry if my crystal ball is broken. -- Peter Boettcher boettcher@ll.mit.edu