• Philipp Stephani's avatar
    Allow non-local exits in module initializers · 9a86966e
    Philipp Stephani authored
    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.
    9a86966e
emacs-module.c 32.8 KB