* broken .emacs file
@ 2003-09-09 17:49 Dan Anderson
0 siblings, 0 replies; 5+ messages in thread
From: Dan Anderson @ 2003-09-09 17:49 UTC (permalink / raw)
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?
Thanks,
Dan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: broken .emacs file
[not found] <mailman.76.1063130750.21628.help-gnu-emacs@gnu.org>
@ 2003-09-09 18:22 ` Barry Margolin
2003-09-09 21:02 ` Dan Anderson
2003-09-09 21:40 ` Peter Boettcher
1 sibling, 1 reply; 5+ messages in thread
From: Barry Margolin @ 2003-09-09 18:22 UTC (permalink / raw)
In article <mailman.76.1063130750.21628.help-gnu-emacs@gnu.org>,
Dan Anderson <dan@mathjunkies.com> wrote:
>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).
What was the -R option for? Just plain "rm /root/.emacs" should do it.
>Is there a command like M-x blank-.emacs-file?
The -q option to emacs runs it without loading the .emacs file. You can
then edit it to correct any problems.
--
Barry Margolin, barry.margolin@level3.com
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: broken .emacs file
2003-09-09 18:22 ` broken .emacs file Barry Margolin
@ 2003-09-09 21:02 ` Dan Anderson
0 siblings, 0 replies; 5+ messages in thread
From: Dan Anderson @ 2003-09-09 21:02 UTC (permalink / raw)
Cc: help-gnu-emacs
> What was the -R option for? Just plain "rm /root/.emacs" should do it.
It deletes directories as well as files. I have a bunch of directories
like .emacs.something ... So it gets rid of them. -f forces removal, so
I don't get an irritating dialougue asking me to confirm deletion.
-Dan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: broken .emacs file
[not found] <mailman.76.1063130750.21628.help-gnu-emacs@gnu.org>
2003-09-09 18:22 ` broken .emacs file Barry Margolin
@ 2003-09-09 21:40 ` Peter Boettcher
2003-09-09 23:18 ` Dan Anderson
1 sibling, 1 reply; 5+ messages in thread
From: Peter Boettcher @ 2003-09-09 21:40 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: broken .emacs file
2003-09-09 21:40 ` Peter Boettcher
@ 2003-09-09 23:18 ` Dan Anderson
0 siblings, 0 replies; 5+ messages in thread
From: Dan Anderson @ 2003-09-09 23:18 UTC (permalink / raw)
Cc: help-gnu-emacs
> Sorry if my crystal ball is broken.
Actually it's right on, thank you. I will edit the ~/ in the .emacs
file to full path name.
Thanks again,
Dan
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-09-09 23:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.76.1063130750.21628.help-gnu-emacs@gnu.org>
2003-09-09 18:22 ` broken .emacs file Barry Margolin
2003-09-09 21:02 ` Dan Anderson
2003-09-09 21:40 ` Peter Boettcher
2003-09-09 23:18 ` Dan Anderson
2003-09-09 17:49 Dan Anderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).