[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
- Re: Dynamic modules: emacs-module.c and signaling errors, (continued)
- Re: Dynamic modules: emacs-module.c and signaling errors, Philipp Stephani, 2015/11/25
- Re: Dynamic modules: emacs-module.c and signaling errors, Paul Eggert, 2015/11/25
- Re: Dynamic modules: emacs-module.c and signaling errors, Tom Tromey, 2015/11/24
- Re: Dynamic modules: emacs-module.c and signaling errors, Paul Eggert, 2015/11/25
- Re: Dynamic modules: emacs-module.c and signaling errors, Eli Zaretskii, 2015/11/25
- Re: Dynamic modules: emacs-module.c and signaling errors, Paul Eggert, 2015/11/25
- Re: Dynamic modules: emacs-module.c and signaling errors, Stefan Monnier, 2015/11/25
- Re: Dynamic modules: emacs-module.c and signaling errors, Eli Zaretskii, 2015/11/26
- Re: Dynamic modules: emacs-module.c and signaling errors, Stefan Monnier, 2015/11/26
- Re: Dynamic modules: emacs-module.c and signaling errors, Eli Zaretskii, 2015/11/26
- Re: Dynamic modules: emacs-module.c and signaling errors,
Stefan Monnier <=
- Re: Dynamic modules: emacs-module.c and signaling errors, Eli Zaretskii, 2015/11/26
- Re: Dynamic modules: emacs-module.c and signaling errors, Stefan Monnier, 2015/11/26
- Re: Dynamic modules: emacs-module.c and signaling errors, Eli Zaretskii, 2015/11/26
- Re: Dynamic modules: emacs-module.c and signaling errors, Paul Eggert, 2015/11/26
- Re: Dynamic modules: emacs-module.c and signaling errors, Philipp Stephani, 2015/11/26
- Re: Dynamic modules: emacs-module.c and signaling errors, Philipp Stephani, 2015/11/26
- Re: Dynamic modules: emacs-module.c and signaling errors, Stefan Monnier, 2015/11/26
- Re: Dynamic modules: emacs-module.c and signaling errors, Daniel Colascione, 2015/11/26
- Re: Dynamic modules: emacs-module.c and signaling errors, Stefan Monnier, 2015/11/27
- Re: Dynamic modules: emacs-module.c and signaling errors, Eli Zaretskii, 2015/11/27