[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: debugging "Lisp nesting exceeds max-lisp-eval-dept" error??
From: |
Chris Moore |
Subject: |
Re: debugging "Lisp nesting exceeds max-lisp-eval-dept" error?? |
Date: |
Thu, 25 Aug 2005 11:33:21 +0200 |
> Well, I've taken the time and have succeeded:
> The following reproducibly produces the bug
>
> emacs-22.0.50 -q -l emacs-22.0-bug.el &
>
> where I've attached the emacs-22.0-bug.el file (in text/plain)
I can confirm that I see an error with that file. And here's a
command line that needs no external .el file to show the bug:
emacs -Q --eval="
(progn (setq debug-on-error t)
(add-hook 'font-lock-mode-hook 'turn-on-lazy-lock)
(global-font-lock-mode t))"
The infinite recursion looks like this in the debugger:
Debugger entered--Lisp error: (error "Lisp nesting exceeds
`max-lisp-eval-depth'")
lazy-lock-mode(t)
turn-on-lazy-lock()
run-hooks(font-lock-mode-hook font-lock-mode-off-hook)
font-lock-mode(t)
lazy-lock-mode(t)
turn-on-lazy-lock()
run-hooks(font-lock-mode-hook font-lock-mode-off-hook)
One thing I noticed is that lazy-lock.el is in .../lisp/obsolete/ -
perhaps you're not supposed to use lazy-lock any more, although
font-lock.el still mentions lazy-lock-mode in several places.
I believe the 'proper' way of using lazy-lock is to:
(setq font-lock-support-mode 'lazy-lock-mode)
See the documentation for font-lock-support-mode for more information.
The default value of font-lock-support-mode is 'jit-lock-mode and
works very well for me. Perhaps the creation of jit-lock-mode is what
obsoleted lazy-lock-mode.
Chris.
- Re: debugging "Lisp nesting exceeds max-lisp-eval-dept" error??, Martin Maechler, 2005/08/22
- Re: debugging "Lisp nesting exceeds max-lisp-eval-dept" error??, Richard M. Stallman, 2005/08/22
- Re: debugging "Lisp nesting exceeds max-lisp-eval-dept" error??, Chris Moore, 2005/08/23
- Re: debugging "Lisp nesting exceeds max-lisp-eval-dept" error??, Richard M. Stallman, 2005/08/24
- Re: debugging "Lisp nesting exceeds max-lisp-eval-dept" error??, Martin Maechler, 2005/08/24
- Re: debugging "Lisp nesting exceeds max-lisp-eval-dept" error??, Chris Moore, 2005/08/24
- Re: debugging "Lisp nesting exceeds max-lisp-eval-dept" error??, Martin Maechler, 2005/08/25
- Re: debugging "Lisp nesting exceeds max-lisp-eval-dept" error??,
Chris Moore <=
- Re: debugging "Lisp nesting exceeds max-lisp-eval-dept" error??, Jason Rumney, 2005/08/25
- Re: debugging "Lisp nesting exceeds max-lisp-eval-dept" error??, Richard M. Stallman, 2005/08/26
- Re: debugging "Lisp nesting exceeds max-lisp-eval-dept" error??, Jason Rumney, 2005/08/27
- Re: debugging "Lisp nesting exceeds max-lisp-eval-dept" error??, Richard M. Stallman, 2005/08/28
- Re: debugging "Lisp nesting exceeds max-lisp-eval-dept" error??, Jason Rumney, 2005/08/28
- Re: debugging "Lisp nesting exceeds max-lisp-eval-dept" error??, Martin Maechler, 2005/08/29
- Re: debugging "Lisp nesting exceeds max-lisp-eval-dept" error??, Richard M. Stallman, 2005/08/29
- Re: debugging "Lisp nesting exceeds max-lisp-eval-dept" error??, Jason Rumney, 2005/08/29
- Re: debugging "Lisp nesting exceeds max-lisp-eval-dept" error??, Kim F. Storm, 2005/08/29
- Re: debugging "Lisp nesting exceeds max-lisp-eval-dept" error??, Richard M. Stallman, 2005/08/30