]> code.delx.au - gnu-emacs/blobdiff - lisp/loadup.el
Comment changes.
[gnu-emacs] / lisp / loadup.el
index 661511c53b52370457b88517beee5702b23ed1d0..dbc8966d08cb0fd81e27cc78781a1083d29ba633 100644 (file)
@@ -57,6 +57,8 @@
 (load "case-table")
 (load "international/characters")
 
+(message "Lists of integers (garbage collection statistics) are normal output")
+(message "while building Emacs; they do not indicate a problem.")
 (message "%s" (garbage-collect))
 (load "loaddefs.el")  ;Don't get confused if someone compiled this by mistake.
 (message "%s" (garbage-collect))
 ;;;See also "site-load" above.
 (load "site-init" t)
 (setq current-load-list nil)
+
+;; Write the value of load-history into fns-VERSION.el,
+;; then clear out load-history.
+(let ((buffer-undo-list t))
+  (princ "(setq load-history\n" (current-buffer))
+  (princ "      (nconc load-history\n" (current-buffer))
+  (princ "             '(" (current-buffer))
+  (let ((tem load-history))
+    (while tem
+      (prin1 (car tem) (current-buffer))
+      (terpri (current-buffer))
+      (if (cdr tem)
+         (princ "               " (current-buffer)))
+      (setq tem (cdr tem))))
+  (princ ")))\n" (current-buffer))
+  (write-region (point-min) (point-max)
+               (expand-file-name
+                (cond 
+                 ((eq system-type 'ms-dos)
+                  "../lib-src/fns.el")
+                 ((eq system-type 'windows-nt)
+                  (format "../../../lib-src/fns-%s.el" emacs-version))
+                 (t
+                  (format "../lib-src/fns-%s.el" emacs-version)))
+                invocation-directory))
+  (erase-buffer))
+(setq load-history nil)
+(set-buffer-modified-p nil)
+
 (garbage-collect)
 
 ;;; At this point, we're ready to resume undo recording for scratch.