emacs-devel
[Top][All Lists]
Advanced

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

Re: preloading newcomment.el


From: Stefan Monnier
Subject: Re: preloading newcomment.el
Date: Mon, 04 Nov 2002 09:45:40 -0500

>     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





reply via email to

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