comparison lisp/loadup.el @ 23286:3ccc2a1aa6fa

Write load-history into etc/fns-VERSION.el, then clear it.
author Karl Heuer <kwzh@gnu.org>
date Mon, 21 Sep 1998 16:33:18 +0000
parents ce7367ed1f02
children 6df77402dfd4
comparison
equal deleted inserted replaced
23285:76798d29cb2b 23286:3ccc2a1aa6fa
207 ;;;Note: You can cause additional libraries to be preloaded 207 ;;;Note: You can cause additional libraries to be preloaded
208 ;;;by writing a site-init.el that loads them. 208 ;;;by writing a site-init.el that loads them.
209 ;;;See also "site-load" above. 209 ;;;See also "site-load" above.
210 (load "site-init" t) 210 (load "site-init" t)
211 (setq current-load-list nil) 211 (setq current-load-list nil)
212
213 ;; Write the value of load-history into etc/LOADHIST.el,
214 ;; the clear out load-history.
215 (let ((buffer-undo-list t))
216 (princ "(setq load-history\n" (current-buffer))
217 (princ " (nconc load-history\n" (current-buffer))
218 (princ " '(" (current-buffer))
219 (let ((tem load-history))
220 (while tem
221 (prin1 (car tem) (current-buffer))
222 (terpri (current-buffer))
223 (if (cdr tem)
224 (princ " " (current-buffer)))
225 (setq tem (cdr tem))))
226 (princ ")))" (current-buffer))
227 (write-region (point-min) (point-max)
228 (expand-file-name (format "fns-%s.el" emacs-version)
229 data-directory))
230 (erase-buffer))
231 (setq load-history nil)
232
212 (garbage-collect) 233 (garbage-collect)
213 234
214 ;;; At this point, we're ready to resume undo recording for scratch. 235 ;;; At this point, we're ready to resume undo recording for scratch.
215 (buffer-enable-undo "*scratch*") 236 (buffer-enable-undo "*scratch*")
216 237