unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* About `max-lisp-eval-depth'
@ 2013-01-04 12:01 Xue Fuqiao
  0 siblings, 0 replies; 2+ messages in thread
From: Xue Fuqiao @ 2013-01-04 12:01 UTC (permalink / raw)
  To: help-gnu-emacs

What's the best value for it?  I know it depends on the platform and computer that run Emacs, but how can I get the most suitable value for me?

I ask this question because when I did coverage testing for a file of Lisp code just now, an error came up: 
Debugger entered--Lisp error: (error "Lisp nesting exceeds `max-lisp-eval-depth'")
-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: About `max-lisp-eval-depth'
       [not found] <mailman.16687.1357300884.855.help-gnu-emacs@gnu.org>
@ 2013-01-04 16:03 ` Barry Margolin
  0 siblings, 0 replies; 2+ messages in thread
From: Barry Margolin @ 2013-01-04 16:03 UTC (permalink / raw)
  To: help-gnu-emacs

In article <mailman.16687.1357300884.855.help-gnu-emacs@gnu.org>,
 Xue Fuqiao <xfq.free@gmail.com> wrote:

> What's the best value for it?  I know it depends on the platform and computer 
> that run Emacs, but how can I get the most suitable value for me?
> 
> I ask this question because when I did coverage testing for a file of Lisp 
> code just now, an error came up: 
> Debugger entered--Lisp error: (error "Lisp nesting exceeds 
> `max-lisp-eval-depth'")

Unless you're doing something that specifically requires high levels of 
recursion, the default is probably appropriate.  99% of the time this 
error indicates an infinite recursion bug, so increasing the max would 
just postpone the error, not prevent it.  If you are doing something 
with deep recursion, you need to determine its needs and set the option 
accordingly.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-04 16:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.16687.1357300884.855.help-gnu-emacs@gnu.org>
2013-01-04 16:03 ` About `max-lisp-eval-depth' Barry Margolin
2013-01-04 12:01 Xue Fuqiao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).