Catch elisp bugs with the compiler Juan Garcia has a post on reducing elisp bugs using the byte-code compiler. You might also like some of these