From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: garbage-collect not called for .el files in loadup.el Date: Tue, 3 Nov 2009 18:00:48 -0800 (PST) Message-ID: <200911040200.nA420mRf027254@godzilla.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1257300164 32239 80.91.229.12 (4 Nov 2009 02:02:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Nov 2009 02:02:44 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 04 03:02:37 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N5VCn-000653-E3 for ged-emacs-devel@m.gmane.org; Wed, 04 Nov 2009 03:02:37 +0100 Original-Received: from localhost ([127.0.0.1]:52826 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5VCm-0007LN-Rk for ged-emacs-devel@m.gmane.org; Tue, 03 Nov 2009 21:02:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N5VCg-0007KY-PN for emacs-devel@gnu.org; Tue, 03 Nov 2009 21:02:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N5VCb-0007Hc-75 for emacs-devel@gnu.org; Tue, 03 Nov 2009 21:02:29 -0500 Original-Received: from [199.232.76.173] (port=33709 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5VCb-0007HY-3i for emacs-devel@gnu.org; Tue, 03 Nov 2009 21:02:25 -0500 Original-Received: from colin-baker-v0.ics.uci.edu ([128.195.1.153]:45321) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N5VCa-0001uu-FN for emacs-devel@gnu.org; Tue, 03 Nov 2009 21:02:24 -0500 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by colin-baker-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id nA420nFV021143 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 3 Nov 2009 18:00:49 -0800 Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id nA420mRf027254; Tue, 3 Nov 2009 18:00:48 -0800 (PST) Original-Lines: 29 X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: nA420nFV021143 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:116606 Archived-At: 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)