bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#24358: 25.1.50; re-search-forward errors with "Variable binding dept


From: npostavs
Subject: bug#24358: 25.1.50; re-search-forward errors with "Variable binding depth exceeds max-specpdl-size"
Date: Wed, 12 Oct 2016 21:29:34 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

I wrote:
>>>> So possible solutions I can would be to pass down the lisp reference to
>>>> re_match_2_internal, [...]
 
Eli Zaretskii <eliz@gnu.org> writes:
>>> (Once we establish this is the problem, we could talk about the fix.
>>> IME, pointers could still be passed, but some extra caution is needed
>>> when using them.)
[...]
> Anyway, the way to countermand this is to record in a local variable
> the offset from beginning of buffer text to the value of the C pointer
> before the call to record_xmalloc, then apply the offset after the
> call to the new buffer text address.  (Let me know if this is clear
> enough.)
>
> You can find an example of this in coding.c:decode_coding_emacs_mule
> (search for "relocated" in that function).

This does involve passing down the lisp reference, right?  Just want to
make sure I'm not missing something obvious before I start changing the
interface on a bunch of functions.





reply via email to

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