Article View: gnu.epoch.misc
Article #1180Re: I can't use the same .emacs for epoch and emacs
From: Aaron Endelman
Date: Tue, 27 Oct 1992 00:41
Date: Tue, 27 Oct 1992 00:41
32 lines
1914 bytes
1914 bytes
In article <1992Oct14.174421.29217@cis.uab.edu> mahesh@evb.com writes: +hi + +I have installed epoch 4.x on my Solbourne. I can't +use the .emacs of epoch for emacs (epoch -nw). When I +try to use emacs itays "Error in init file". +Is there a way to solve this problem? That's a FAQ question, but I can type in the answer pretty fast, too... Start up epoch with the -q switch, which won't load your init file. In the *scratch* buffer, type (setq debug-on-error t)^J (yes, that's a control-J). Then type (load-file "~/.emacs")^J. The debugger will come up, showing a backtrace of where the error occurred. When you find the problem, you can conditionalize the code as follows: At the beginning of your .emacs file, add the line: (setq running-epoch (boundp 'epoch::version)) Then you can say stuff like (if running-epoch ...). -- -------------------------------------------------------------------------- Aaron Endelman KK6QH SPARCworks IBEx Group endelman@eng.sun.com UMTV12-33, Sun Microsystems, Inc., 2550 Garcia Ave., Mtn. View, CA 94043 "What a waste it is to lose one's mind, or not to have a mind at all." -DQ
Technical Details
Message-ID:
<lep41uINNo08@exodus.Eng.Sun.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!ukma!wupost!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!exodus.Eng.Sun.COM!wellworld.Eng.Sun.COM!endelmanReferences:
<1992Oct14.174421.29217@cis.uab.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc7ee,a0e98cd5c85af260 X-Google-Attributes: gidfc7ee,public X-Google-ArrivalTime: 1992-10-26 00:28:44 PST Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!ukma!wupost!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!exodus.Eng.Sun.COM!wellworld.Eng.Sun.COM!endelman From: endelman@wellworld.Eng.Sun.COM (Aaron Endelman) Newsgroups: gnu.epoch.misc Subject: Re: I can't use the same .emacs for epoch and emacs Date: 27 Oct 1992 00:41:34 GMT Organization: Sun Microsystems, Mt. View, Ca. Lines: 32 Message-ID: <lep41uINNo08@exodus.Eng.Sun.COM> References: <1992Oct14.174421.29217@cis.uab.edu> NNTP-Posting-Host: wellworld Cc: mahesh@evb.com