From: Dan Nicolaescu <dann@ics.uci.edu>
To: emacs-devel@gnu.org
Subject: garbage-collect not called for .el files in loadup.el
Date: Tue, 3 Nov 2009 18:00:48 -0800 (PST) [thread overview]
Message-ID: <200911040200.nA420mRf027254@godzilla.ics.uci.edu> (raw)
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)
next reply other threads:[~2009-11-04 2:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-04 2:00 Dan Nicolaescu [this message]
2009-11-04 3:47 ` garbage-collect not called for .el files in loadup.el Stefan Monnier
2009-11-04 4:13 ` Dan Nicolaescu
2009-11-04 5:05 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200911040200.nA420mRf027254@godzilla.ics.uci.edu \
--to=dann@ics.uci.edu \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.