home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / gnu / emacs / help / 3930 < prev    next >
Encoding:
Text File  |  1992-09-01  |  2.0 KB  |  49 lines

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