[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: broken .emacs file
From: |
Peter Boettcher |
Subject: |
Re: broken .emacs file |
Date: |
Tue, 09 Sep 2003 17:40:15 -0400 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux) |
Dan Anderson <dan@mathjunkies.com> 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.
<end crystal ball viewing>
Sorry if my crystal ball is broken.
--
Peter Boettcher
boettcher@ll.mit.edu