emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need help with ad-do-it, it loops


From: Stefan Monnier
Subject: Re: Need help with ad-do-it, it loops
Date: Fri, 08 May 2009 15:30:02 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux)

>>> I have a strange case of looping in MuMaMo/nXhtml. One user (Rémi) has
>>> this problem on Debian. This happens after starting from "emacs -Q"
>>> and just loading nXhtml and pressing RET in the scratch buffer. The
>>> output from the debugger says
>> 
>>> Debugger entered--Lisp error: (error "Lisp nesting exceeds
>>> `max-lisp-eval-depth'")
>>>   ad-Orig-syntax-ppss-flush-cache(192 192)
>>>   apply(ad-Orig-syntax-ppss-flush-cache 192 192)
>>>   ...
>>>   ad-Orig-syntax-ppss-flush-cache(192 192)
>>>   apply(ad-Orig-syntax-ppss-flush-cache 192 192)
>>>   syntax-ppss-flush-cache(192 192)
>>>   self-insert-command(1)
>>>   newline(nil)
>>>   call-interactively(newline nil nil)
>> [...]
>>> I can't understand how this can loop. Any suggestions?
>> 
>> Well, since you carefully hid the answer in "...", we can't
>> really answer.

> It just looping with the output

So ad-Orig-syntax-ppss-flush-cache is now a function that calls
ad-Orig-syntax-ppss-flush-cache rather than being the original function
bound to syntax-ppss-flush-cache.  This shouldn't happen.
To see it, try M-: (symbol-function 'ad-Orig-syntax-ppss-flush-cache).

It means that it's either a bug in advice.el or that the function was
manipulated in odd ways which confused advice, or something like that.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]