Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
As a further example I have this in my .emacs also now to stop further evaluatiion when I am using a different emacs version. ;; ;; WARNING!! don't execute anything below here if using plain old emacs (if (string-equal "/usr/bin/emacs" (getenv "EMACS")) (top-level))
The question seems quite clear, how do you stop emacs from further evaluating code. The (top-level) when encountered will stop further evaluation. What the problem was does not matter, I wanted a way to simply put something in my .emacs top prevent evaluating code so I did not have to resort to commenting out or deleting text. Using (top-level) allowed me to bisect my .emacs until I found what was causing my issue. Anyone else stumbling across this may find it useful to stop code evaluation.