I have now updated the Emacs mode to use the new library model introduced by Jürgen.
The main benefit of this model is that the native library is unaffected by )ERASE and workspace loads.
To use it, make sure that you've updated to the latest versions of GNU APL as well as gnu-apl-mode. Then, build the native library and copy the resulting .so (or .dylib) file to $prefix/lib/apl.
Finally, set the variable gnu-apl-use-new-native-library to t before starting GNU APL:
(setq gnu-apl-use-new-native-library t)
If everything works correctly, the )FNS command should no longer show the function EMACS_NATIVE. Also, things should not crash when loading a new workspace.
Regards,
Elias