javascriptemacselispemacs23js2-mode

The js2-mode.el compilation error


I am getting an error when I compile js2-mode.el using byte-compile-file command in emacs.

js2-mode.el:6778:21:Error: Lisp nesting exceeds `max-lisp-eval-depth'

How do I get rid of this?


Solution

  • You can try to increase max-lisp-eval-depth: it's usually large enough as it is, but byte-compilation can occasionally recurse fairly deep. So try M-: (setq max-lisp-eval-depth (* max-lisp-eval-depth 2)) RET. If that doesn't solve the problem, there might be some more serious issue, such as an infinite recursion.