comparison lisp/loadup.el @ 6540:fd0c4b42a63b

Don't test for presence of dump-emacs. Use `dump' argument as criterion for copying DOC, for running top-level, and for extending the version number. Delete the sleep-for.
author Richard M. Stallman <rms@gnu.org>
date Sat, 26 Mar 1994 20:57:49 +0000
parents 8ed445c84d3c
children da863741c5b8
comparison
equal deleted inserted replaced
6539:b705afc2b2ec 6540:fd0c4b42a63b
26 ;; This is loaded into a bare Emacs to make a dumpable one. 26 ;; This is loaded into a bare Emacs to make a dumpable one.
27 27
28 ;;; Code: 28 ;;; Code:
29 29
30 (message "Using load-path %s" load-path) 30 (message "Using load-path %s" load-path)
31 (sleep-for 1)
32 31
33 ;;; We don't want to have any undo records in the dumped Emacs. 32 ;;; We don't want to have any undo records in the dumped Emacs.
34 (buffer-disable-undo "*scratch*") 33 (buffer-disable-undo "*scratch*")
35 34
36 (load "subr") 35 (load "subr")
135 (if (load "site-load" t) 134 (if (load "site-load" t)
136 (garbage-collect)) 135 (garbage-collect))
137 136
138 ;; Determine which last version number to use 137 ;; Determine which last version number to use
139 ;; based on the executables that now exist. 138 ;; based on the executables that now exist.
140 (if (and (fboundp 'dump-emacs) (not (eq system-type 'ms-dos))) 139 (if (and (or (equal (nth 3 command-line-args) "dump")
140 (equal (nth 4 command-line-args) "dump"))
141 (not (eq system-type 'ms-dos)))
141 (let* ((base (concat "emacs-" emacs-version)) 142 (let* ((base (concat "emacs-" emacs-version))
142 (files (file-name-all-completions base default-directory)) 143 (files (file-name-all-completions base default-directory))
143 (versions (mapcar (function (lambda (name) 144 (versions (mapcar (function (lambda (name)
144 (string-to-int (substring name (1+ (length base)))))) 145 (string-to-int (substring name (1+ (length base))))))
145 files))) 146 files)))
153 ;; must be among the ones parsed by make-docfile 154 ;; must be among the ones parsed by make-docfile
154 ;; to construct DOC. Any that are not processed 155 ;; to construct DOC. Any that are not processed
155 ;; for DOC will not have doc strings in the dumped Emacs. 156 ;; for DOC will not have doc strings in the dumped Emacs.
156 157
157 (message "Finding pointers to doc strings...") 158 (message "Finding pointers to doc strings...")
158 (if (fboundp 'dump-emacs) 159 (if (or (equal (nth 3 command-line-args) "dump")
160 (equal (nth 4 command-line-args) "dump"))
159 (let ((name emacs-version)) 161 (let ((name emacs-version))
160 (while (string-match "[^-+_.a-zA-Z0-9]+" name) 162 (while (string-match "[^-+_.a-zA-Z0-9]+" name)
161 (setq name (concat (downcase (substring name 0 (match-beginning 0))) 163 (setq name (concat (downcase (substring name 0 (match-beginning 0)))
162 "-" 164 "-"
163 (substring name (match-end 0))))) 165 (substring name (match-end 0)))))
218 220
219 ;; For machines with CANNOT_DUMP defined in config.h, 221 ;; For machines with CANNOT_DUMP defined in config.h,
220 ;; this file must be loaded each time Emacs is run. 222 ;; this file must be loaded each time Emacs is run.
221 ;; So run the startup code now. 223 ;; So run the startup code now.
222 224
223 (or (fboundp 'dump-emacs) 225 (or (or (equal (nth 3 command-line-args) "dump")
226 (equal (nth 4 command-line-args) "dump"))
224 (eval top-level)) 227 (eval top-level))
225 228
226 ;;; loadup.el ends here 229 ;;; loadup.el ends here