emacs-devel
[Top][All Lists]
Advanced

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

Re: Dynamic modules: emacs-module.c and signaling errors


From: Stefan Monnier
Subject: Re: Dynamic modules: emacs-module.c and signaling errors
Date: Thu, 26 Nov 2015 14:28:34 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

> What happens now is that modules can call Lisp only via env->funcall,
> which _will_ catch the signal.  When the signal is caught, its data is
> recorded.  All the other API calls made by the module function on
> whose watch the signal happened will do nothing, and eventually the
> module function will return to module-call, which will re-throw the
> signal with exactly the same data.
> Why is that a problem?

Because this loses the connection between the signal and its origin.
Because it imposes a cost which we may not want to pay.

The current "funcall" should be renamed to "safe_funcall", and a new
"funcall" should be provided which does not catch signals.


        Stefan



reply via email to

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