-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"pymacs-unload" #41
Comments
I made myself a branch and added a little reminder in |
Someone else asked me, today, if there was some pymacs-unload function! :-) If I read you correctly, you even suggest a function that would unload all Pymacs loaded modules at once. One problem that I see, but I do not know if it worth being considered or not, is about postponing the cleanup until all functions become quiescent. To implement such a modification, one would likely have to carefully consider zombies. Functions may exist in numbered slots, and unloading a function without clearing the associated slot is prone to producing later errors. This has been the source of difficulties in some previous Pymacs version, and even if zombies are more bearable nowadays that they once were, Pymacs should nevertheless take care. In any case, keep us posted on your progress on this matter. Keep happy! François |
I misspoke. I remember now, my biggest pain point has nothing to do with multiple Python interpreters. Rather, it happens when the remote Python interpreter or its Pymacs process goes away, most often because my VM suspended due to low battery on my laptop. That condition makes Emacs report a Pymacs error anytime I try to save a buffer or quit Emacs, so I have to force quit. |
This is my current workaround to unwedge my Emacs when the Pymacs helper has died and can't restart:
|
The
pymacs-load
function defines lots of new symbols and wreakshavoc because of its dependency on the Pymacs buffer's helper
process. Pymacs should provide a sane way to unload itself and the
symbols it defines via
pymacs-load
. See alsohttp://www.gnu.org/software/emacs/manual/html_node/elisp/Unloading.html
and
http://www.gnu.org/software/emacs/manual/html_node/elisp/Named-Features.html.
The text was updated successfully, but these errors were encountered: