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

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

Re: Running elisp code in the middle of re-search-forward


From: Stefan Monnier
Subject: Re: Running elisp code in the middle of re-search-forward
Date: Fri, 09 Sep 2005 09:00:46 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>> Sure it is safe--that's what immediate_quit will do in the signal handler.
>     But the OP's backtrace seem to indicate that it runs elisp code (via
>     process filters).  Does immediate_quit do that as well?

> Normally not, but I can think of one way that quitting could do this.
> Namely, if it runs an unwind-protect cleanup form.  I suspect that is
> how ange-ftp-del-tmp-name got called.  I don't know if it is used in
> an unwind-protect cleanup, but it would be natural if it were.

Oh, yes, now it makes sense.  And it is indeed safe since it's actually
not "within re-search-forward": re-search-forward is still on the backtrace
but we won't return to it since we'll longjmp over it instead.

Funnily I had never seen such a backtrace before.


        Stefan




reply via email to

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