From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: preloading newcomment.el Date: Mon, 04 Nov 2002 09:45:40 -0500 Sender: emacs-devel-admin@gnu.org Message-ID: <200211041445.gA4EjeT23347@rum.cs.yale.edu> References: <200210310011.g9V0BCY25183@rum.cs.yale.edu> <200211011656.gA1Gui104715@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1036422569 11206 80.91.224.249 (4 Nov 2002 15:09:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 4 Nov 2002 15:09:29 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 188iqe-0002sy-00 for ; Mon, 04 Nov 2002 16:09:04 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 188iyD-0007Lz-00 for ; Mon, 04 Nov 2002 16:16:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 188ikv-0004YW-00; Mon, 04 Nov 2002 10:03:09 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 188iU6-0007KO-00 for emacs-devel@gnu.org; Mon, 04 Nov 2002 09:45:46 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 188iU1-0007HD-00 for emacs-devel@gnu.org; Mon, 04 Nov 2002 09:45:44 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10) id 188iU0-0007Gl-00; Mon, 04 Nov 2002 09:45:40 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id gA4EjeT23347; Mon, 4 Nov 2002 09:45:40 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Richard Stallman Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9105 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9105 > It adds 16388 bytes of pure storage if byte-compiled normally > and 3632 if byte-compile-dynamic is used. > > What do you think then of preloading it but using byte-compile-dynamic? It turns out that it doesn't work: byte-compile-dynamic doesn't work for preloaded files (because the external reference to the code is read in as 0 (assuming that it is a docstring reference and will be filled in by Snarf-documentation). The problem is "fixed" by the patch below, but it's not a satisfactory fix (it increases the amount of pure storage used) and I have no idea how to really fix things. Stefan Index: src/lread.c =================================================================== RCS file: /cvsroot/emacs/emacs/src/lread.c,v retrieving revision 1.301 diff -u -r1.301 lread.c --- src/lread.c 30 Oct 2002 19:15:17 -0000 1.301 +++ src/lread.c 4 Nov 2002 14:44:09 -0000 @@ -2844,7 +2844,7 @@ this file is described in the DOC-MM.NN file and Snarf-documentation will fill in the right value later. For now, replace the whole list with 0. */ - doc_reference = 1; + doc_reference = 0; else /* We have already called Snarf-documentation, so make a relative file name for this file, so it can be found properly