emacs-devel
[Top][All Lists]
Advanced

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

Re: Catch arbitrary signal and throw it later in C


From: Eli Zaretskii
Subject: Re: Catch arbitrary signal and throw it later in C
Date: Thu, 13 Apr 2023 11:20:14 +0300

> From: Yuan Fu <casouri@gmail.com>
> Date: Thu, 13 Apr 2023 01:12:37 -0700
> Cc: emacs-devel@gnu.org
> 
> > Isn't `unwind-protect' (or its internal C functionalities) what you
> > want, or is it not suitable in Emacs-C land?  This macro is defined in
> > C, FTR.
> 
> unwind-protect (and its internal C counterpart) pushes the cleanup form onto 
> specpdl. Supposingly that form is later eval’ed?

It is evaluated when you call unbind_to (which you must, when you use
record_unwind_protect etc.).



reply via email to

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