From d91e92f53f75c1c4eebd87447642ef4015f48970 Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Tue, 20 Sep 2011 14:19:45 +0200 Subject: [PATCH] scel: shutdown library before class library recompilation Signed-off-by: Tim Blechmann --- el/sclang-interp.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/el/sclang-interp.el b/el/sclang-interp.el index 6ca8b46..f9c7e4f 100644 --- a/el/sclang-interp.el +++ b/el/sclang-interp.el @@ -231,7 +231,9 @@ If EOB-P is non-nil, positions cursor at end of buffer." (defun sclang-on-library-shutdown () (run-hooks 'sclang-library-shutdown-hook) - (setq sclang-library-initialized-p nil)) + (setq sclang-library-initialized-p nil) + (sclang-message "Shutting down library...") + ) ;; ===================================================================== ;; process hooks @@ -346,6 +348,7 @@ If EOB-P is non-nil, positions cursor at end of buffer." "Recompile class library." (interactive) (when (sclang-get-process) + (sclang-on-library-shutdown) (process-send-string sclang-process "\x18") ))