From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani
Hi all,I wrote a small Emacs dynam= ic module to execute Python scripts in an embeddedPython interpreter (https://github.com/jvkersch/emacs= -python). The main thingmissing is that = I would like to do some cleanup in the embedded Pythoninterpreter when Emacs exits (close open files, deal with threads= /processes,etc). What would be the best way = to do so?1. Can I just register an atexit handler when my module= starts, or will thatinterfere with some Ema= cs internals?
2. Would it make sense to add support to the module API for = a cleanup callbackthat is called when Emacs = exits?