emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

garbage-collect not called for .el files in loadup.el


From: Dan Nicolaescu
Subject: garbage-collect not called for .el files in loadup.el
Date: Tue, 3 Nov 2009 18:00:48 -0800 (PST)

As the subject says, GC is not done after loading .el files in
loadup.el, only .elc files.  

These files are loaded with `load-with-code-conversion', which does:
      (unless purify-flag
         (do-after-load-evaluation fullname))

do-after-load-evaluation runs the `after-load-functions' hook.

So hoa bout this patch?

Index: mule.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/international/mule.el,v
retrieving revision 1.290
diff -u -3 -p -u -p -r1.290 mule.el
--- mule.el   26 Oct 2009 15:18:04 -0000        1.290
+++ mule.el   4 Nov 2009 01:53:55 -0000
@@ -353,7 +353,8 @@ Return t if file exists."
                  ))
                  (let (kill-buffer-hook kill-buffer-query-functions)
                    (kill-buffer buffer)))
-      (unless purify-flag
+      (if purify-flag
+        (run-hook-with-args 'after-load-functions fullname)
        (do-after-load-evaluation fullname))
 
       (unless (or nomessage noninteractive)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]