home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!opl.com!hri.com!spool.mu.edu!darwin.sura.net!gatech!ukma!cs.widener.edu!dsinc!ub!csn!news.den.mmc.com!b52!kevin
- From: kevin@b52.den.mmc.com (Kevin Rodgers)
- Newsgroups: gnu.emacs.help
- Subject: Re: debugging .emacs
- Message-ID: <1993Jan26.174310.16842@den.mmc.com>
- Date: 26 Jan 93 17:43:10 GMT
- References: <PSHANNON.93Jan20220406@iapetus.cv.nrao.edu> <NICKEL.93Jan22201627@tempest.cs.tu-berlin.de> <LEVITTE.93Jan23174528@elin.e.kth.se>
- Sender: news@den.mmc.com (News)
- Organization: Martin Marietta Western Internal Systems, Technical Operations
- Lines: 37
- Nntp-Posting-Host: b52.den.mmc.com
-
- In article <LEVITTE.93Jan23174528@elin.e.kth.se> LEVITTE@e.kth.se (Richard Levitte) writes:
- >It is possible to make that error message a little more descriptive
- >with the following patch on startup.el:
- >
- >*** ed:[orig.lisp]startup.el
- >--- ed:[new.lisp]startup.el
- >**************
- >*** 124,130
- > ;; Don't you dare turn this off for anyone
- > ;; except yourself.
- > (load "default" t t)))))
- >! (error (message "Error in init file")))
- > (if (get-buffer "*scratch*")
- > (save-excursion
- > (set-buffer "*scratch*")
- >--- 124,130 -----
- > ;; Don't you dare turn this off for anyone
- > ;; except yourself.
- > (load "default" t t)))))
- >! (error (message (format "Error in init file: %s" error))))
- > (if (get-buffer "*scratch*")
- > (save-excursion
- > (set-buffer "*scratch*")
- >
- >
- >The message can be a little cryptic, but it helps to get the message:
- >"Error in init file: (void-variable foo)"
-
- Very nice idea! But note that message takes format directives, so you
- don't need to call format:
-
- (error (message "Error in init file: %s" error))
- --
- Kevin Rodgers kevin@traffic.den.mmc.com
- Martin Marietta MS A16401 (303) 790-3971
- 116 Inverness Dr. East
- Englewood CO 80112 USA GO BUFFS!
-