At 11:56 PM 6/20/00 +0100, Phillip Lord wrote:
>
>>>>>> "Benjamin" == Benjamin Shults <[EMAIL PROTECTED]> writes:
>
> Benjamin> (error "Variable binding depth
> Benjamin> exceeds max-specpdl-size") [2 times] Fontifying
> Benjamin> MutableContainer.java... Fontifying
> Benjamin> MutableContainer.java... (regexps.............) File mode
> Benjamin> specification error: (error "Variable binding depth
> Benjamin> exceeds max-specpdl-size")
>
>
> This is being caused by the semantic parser. The variable
>max-specpdl-size relates approximately the maximum size of the
>execution stack. There is no real way of determining in general what
>the size of this variable should be, as there is no way in general of
>determining whether a program written in a language which is generally
>recursive will actually terminate. So Emacs sets is as a
>variable.
>
> Semantic is recursive to the extent that it puts all
>other recursive programs to shame so you need to increase the size of
>this variable. From the semantic documentation....
>
>"Because the bovinator is recursive, you may need to add the
>following to your .emacs file:
>
> `(setq max-specpdl-size 1000)'"
>
>
> Paul:- Perhaps it would be wise to stick this
>code into the JDE minimal .emacs you have on your website. I can't
>really think when setting this to 1000 is going to cause any
>problems...
>
I'd like to figure out first why he is getting an error. I've tried the
bovinator on some very complex JDK files, for example, Component.java and
Container.java, without getting recursion errors. Is this user's file more
complex than Component.java?
- Paul