home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!math.fu-berlin.de!mailgzrz.TU-Berlin.DE!mailgzrz.tu-berlin.de!nickel
- From: nickel@cs.tu-berlin.de (Juergen Nickelsen)
- Newsgroups: gnu.emacs.help
- Subject: Re: debugging .emacs
- Date: 22 Jan 1993 19:16:29 GMT
- Organization: STONE Project, Technical University of Berlin, Germany
- Lines: 34
- Message-ID: <NICKEL.93Jan22201627@tempest.cs.tu-berlin.de>
- References: <PSHANNON.93Jan20220406@iapetus.cv.nrao.edu>
- Reply-To: nickel@cs.tu-berlin.de
- NNTP-Posting-Host: tempest.cs.tu-berlin.de
- In-reply-to: pshannon@iapetus.cv.nrao.edu's message of Thu, 21 Jan 1993 03:04:06 GMT
-
- In article <PSHANNON.93Jan20220406@iapetus.cv.nrao.edu>
- pshannon@iapetus.cv.nrao.edu (Paul Shannon) writes:
-
- > I just made a change to my .emacs file. When I restart, I learn
- > that there's an
- >
- > "Error in init file"
- >
- > Is there some way I can trace the execution of my .emacs so I can
- > find out what I did wrong? Will this allow me to trace into files
- > loaded from .emacs?
-
- Unfortunately debugging .emacs is not very intuitive. Here is what I
- do:
-
- The code in my .emacs is embedded in a let contruct which sets
- debug-on-error to t:
-
- (let ((debug-on-error t))
-
- ;; startup code
-
- )
-
- This way Emacs doesn't behave different on error in the .emacs when
- starting up (i.e. only the non-descriptive message "Error in init
- file" appears), but I can start Emacs with the -q switch ("Do not load
- your Emacs init file `~/.emacs'"), then do a (load-file ".emacs").
-
- When an error occurs, the usual debugger window appears.
-
-
- --
- Juergen Nickelsen
-