changeset 105039:b1f5d3d17b17

* Makefile.in (compile-onefile): Use byte-compile-refresh-preloaded. * emacs-lisp/bytecomp.el (byte-compile-refresh-preloaded): Don't autoload.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 15 Sep 2009 15:29:50 +0000
parents 1d28378da242
children f43dfae3e132
files lisp/ChangeLog lisp/Makefile.in lisp/emacs-lisp/bytecomp.el
diffstat 3 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Sep 15 11:42:37 2009 +0000
+++ b/lisp/ChangeLog	Tue Sep 15 15:29:50 2009 +0000
@@ -1,3 +1,9 @@
+2009-09-15  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* Makefile.in (compile-onefile): Use byte-compile-refresh-preloaded.
+	* emacs-lisp/bytecomp.el (byte-compile-refresh-preloaded):
+	Don't autoload.
+
 2009-09-15  Stephen Eglen  <stephen@gnu.org>
 
 	* iswitchb.el (iswitchb-read-buffer): When selecting a match from
--- a/lisp/Makefile.in	Tue Sep 15 11:42:37 2009 +0000
+++ b/lisp/Makefile.in	Tue Sep 15 15:29:50 2009 +0000
@@ -1288,7 +1288,9 @@
 # src/Makefile.in to rebuild a particular Lisp file, no questions asked.
 compile-onefile:
 	@echo Compiling $(THEFILE)
-	@$(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $(THEFILE)
+	# Use byte-compile-refresh-preloaded to try a work around some of
+	# the most common bootstrapping problems.
+	@$(emacs) -l bytecomp.el -f byte-compile-refresh-preloaded $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $(THEFILE)
 
 # Files MUST be compiled one by one. If we compile several files in a
 # row (i.e., in the same instance of Emacs) we can't make sure that
--- a/lisp/emacs-lisp/bytecomp.el	Tue Sep 15 11:42:37 2009 +0000
+++ b/lisp/emacs-lisp/bytecomp.el	Tue Sep 15 15:29:50 2009 +0000
@@ -4394,7 +4394,6 @@
 		(prin1-to-string (cdr err)))
        nil))))
 
-;;;###autoload
 (defun byte-compile-refresh-preloaded ()
   "Reload any Lisp file that was changed since Emacs was dumped.
 Use with caution."