aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1999-04-06 19:51:57 +0000
committerRichard M. Stallman1999-04-06 19:51:57 +0000
commit684c38fcce6a68fe0e93a9345871ed153ce749ab (patch)
tree3fa203f496db2eb864bf9eb25a2055039da2f16b
parentfb2fdea71ca69f2d4d2b569b5e91c5b14c07645c (diff)
downloademacs-684c38fcce6a68fe0e93a9345871ed153ce749ab.tar.gz
emacs-684c38fcce6a68fe0e93a9345871ed153ce749ab.zip
Don't write the fns-...el file if not dumping.
-rw-r--r--lisp/loadup.el51
1 files changed, 27 insertions, 24 deletions
diff --git a/lisp/loadup.el b/lisp/loadup.el
index dbc8966d08c..a62386ce324 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -212,30 +212,33 @@
212 212
213;; Write the value of load-history into fns-VERSION.el, 213;; Write the value of load-history into fns-VERSION.el,
214;; then clear out load-history. 214;; then clear out load-history.
215(let ((buffer-undo-list t)) 215(if (or (equal (nth 3 command-line-args) "dump")
216 (princ "(setq load-history\n" (current-buffer)) 216 (equal (nth 4 command-line-args) "dump"))
217 (princ " (nconc load-history\n" (current-buffer)) 217 (let ((buffer-undo-list t))
218 (princ " '(" (current-buffer)) 218 (princ "(setq load-history\n" (current-buffer))
219 (let ((tem load-history)) 219 (princ " (nconc load-history\n" (current-buffer))
220 (while tem 220 (princ " '(" (current-buffer))
221 (prin1 (car tem) (current-buffer)) 221 (let ((tem load-history))
222 (terpri (current-buffer)) 222 (while tem
223 (if (cdr tem) 223 (prin1 (car tem) (current-buffer))
224 (princ " " (current-buffer))) 224 (terpri (current-buffer))
225 (setq tem (cdr tem)))) 225 (if (cdr tem)
226 (princ ")))\n" (current-buffer)) 226 (princ " " (current-buffer)))
227 (write-region (point-min) (point-max) 227 (setq tem (cdr tem))))
228 (expand-file-name 228 (princ ")))\n" (current-buffer))
229 (cond 229 (write-region (point-min) (point-max)
230 ((eq system-type 'ms-dos) 230 (expand-file-name
231 "../lib-src/fns.el") 231 (cond
232 ((eq system-type 'windows-nt) 232 ((eq system-type 'ms-dos)
233 (format "../../../lib-src/fns-%s.el" emacs-version)) 233 "../lib-src/fns.el")
234 (t 234 ((eq system-type 'windows-nt)
235 (format "../lib-src/fns-%s.el" emacs-version))) 235 (format "../../../lib-src/fns-%s.el" emacs-version))
236 invocation-directory)) 236 (t
237 (erase-buffer)) 237 (format "../lib-src/fns-%s.el" emacs-version)))
238(setq load-history nil) 238 invocation-directory))
239 (erase-buffer)
240 (setq load-history nil))
241 (setq symbol-file-load-history-loaded t))
239(set-buffer-modified-p nil) 242(set-buffer-modified-p nil)
240 243
241(garbage-collect) 244(garbage-collect)