home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!gumby!destroyer!ncar!sunny!southern
- From: southern@sunny.NoSubdomain.NoDomain (Lawrence Buja)
- Subject: Re: another .emacs problem
- Message-ID: <1992Sep1.195517.18971@ncar.ucar.edu>
- Sender: news@ncar.ucar.edu (USENET Maintenance)
- Reply-To: southern@ncar.ucar.edu
- Organization: National Center for Atmospheric Research
- References: <1992Sep1.182617.15356@engage.pko.dec.com>
- Distribution: usa
- Date: Tue, 1 Sep 1992 19:55:17 GMT
- Lines: 35
-
- In article <1992Sep1.182617.15356@engage.pko.dec.com>, eje@irenaeus.mlo.dec.com (Eric James Ewanco) writes:
- >
- >I have a rather complicated .emacs file with lots of nifty stuff I wrote.
-
- After awhile, one learns to have an uncomplicated .emacs file, it
- just makes life easier. Can you break the various functions that
- you have in your .emacs file into a number of .el files. Then you
- can reduce your .emacs file to a simple series of load calls. This
- simplifies debugging as whichever .el file follows the last .el
- file to successfuly load usually contains the problem. Also see
- the function safe-load.el I posted to gnu.emacs.sources. It was
- designed to shed some light on situations like this.
-
- >Unfortunately I have this problem that whenever I bring up .emacs, I get an
- >"Error in init file". ...text deleted...
- >They behave fine whenever I execute them on their own as you might
- >guess. They just don't work in the .emacs file.
-
- I don't know what's biting you, but an invaluable emacs debugging
- function that might pinpoint it is available by setting:
-
- (setq stack-trace-on-error t) ; Trace errors in other window
-
- This is the very first first thing I set in my .emacs file. If
- emacs detects an error, it splits the window and gives you a
- traceback on the error. It can be a bit too verbose for normal
- usage, but it's nice to have active when something does go wrong.
-
-
- /\ Lawrence Buja Climate and Global Dynamics Division
- \_][ southern@ncar.ucar.edu National Center for Atmospheric Research
- \_________________________Boulder,_Colorado___80307-3000__________
-
-
-
-