]> git.eshelyaron.com Git - emacs.git/commit
Allow non-local exits in module initializers
authorPhilipp Stephani <phst@google.com>
Sun, 11 Jun 2017 12:50:20 +0000 (14:50 +0200)
committerPhilipp Stephani <phst@google.com>
Sun, 11 Jun 2017 12:54:05 +0000 (14:54 +0200)
commit9a86966edb5ce760976bd7ce36c92e3b4eb0705d
tree8c29344501f197643f28127143adec165d8805b7
parentcf557fa9c53bb8795ddc744319e067515a9dba67
Allow non-local exits in module initializers

Previously signals, throws, and quits from module initialization
functions were ignored.  These function aren't special, and better
errors can be reported using signals than with the initialization
return code, so allow non-local exits.

* src/emacs-module.c (module_signal_or_throw): New helper function.
(Fmodule_load, funcall_module): Use it.
(Fmodule_load): Also allow quitting.
src/emacs-module.c