diff options
| author | Richard M. Stallman | 1994-01-06 04:36:22 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-01-06 04:36:22 +0000 |
| commit | ed10e0ab9cddf9bfacc19f2e0cdb3f67570210c6 (patch) | |
| tree | 8e64c8be9fb76fdb354c9d730579f541d3776c2b | |
| parent | 10b501e3e88b43af3f65c87ac08a36a8b4902453 (diff) | |
| download | emacs-ed10e0ab9cddf9bfacc19f2e0cdb3f67570210c6.tar.gz emacs-ed10e0ab9cddf9bfacc19f2e0cdb3f67570210c6.zip | |
[ms-dos]: Preload mouse.el, dos-fns.el,
disp-table.el, and ls-lisp. Dump only one version. Use simpler
name for doc file.
| -rw-r--r-- | lisp/loadup.el | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/lisp/loadup.el b/lisp/loadup.el index dc0c393829b..a87190fb01f 100644 --- a/lisp/loadup.el +++ b/lisp/loadup.el | |||
| @@ -94,6 +94,16 @@ | |||
| 94 | (progn | 94 | (progn |
| 95 | (garbage-collect) | 95 | (garbage-collect) |
| 96 | (load "vms-patch"))) | 96 | (load "vms-patch"))) |
| 97 | (if (eq system-type 'ms-dos) | ||
| 98 | (progn | ||
| 99 | (load "ls-lisp") | ||
| 100 | (garbage-collect) | ||
| 101 | (load "mouse") | ||
| 102 | (garbage-collect) | ||
| 103 | (load "dos-fns") | ||
| 104 | (garbage-collect) | ||
| 105 | (load "disp-table") ; needed to setup ibm-pc char set, see internal.el | ||
| 106 | (garbage-collect))) | ||
| 97 | (if (fboundp 'atan) ; preload some constants and | 107 | (if (fboundp 'atan) ; preload some constants and |
| 98 | (progn ; floating pt. functions if | 108 | (progn ; floating pt. functions if |
| 99 | (garbage-collect) ; we have float support. | 109 | (garbage-collect) ; we have float support. |
| @@ -124,10 +134,12 @@ | |||
| 124 | (setq name (concat (downcase (substring name 0 (match-beginning 0))) | 134 | (setq name (concat (downcase (substring name 0 (match-beginning 0))) |
| 125 | "-" | 135 | "-" |
| 126 | (substring name (match-end 0))))) | 136 | (substring name (match-end 0))))) |
| 127 | (setq name (concat (expand-file-name "../etc/DOC-") name)) | 137 | (if (eq system-type 'ms-dos) |
| 128 | (if (file-exists-p name) | 138 | (setq name (expand-file-name "../etc/DOC")) |
| 129 | (delete-file name)) | 139 | (setq name (concat (expand-file-name "../etc/DOC-") name)) |
| 130 | (copy-file (expand-file-name "../etc/DOC") name t) | 140 | (if (file-exists-p name) |
| 141 | (delete-file name)) | ||
| 142 | (copy-file (expand-file-name "../etc/DOC") name t)) | ||
| 131 | (Snarf-documentation (file-name-nondirectory name))) | 143 | (Snarf-documentation (file-name-nondirectory name))) |
| 132 | (Snarf-documentation "DOC")) | 144 | (Snarf-documentation "DOC")) |
| 133 | (message "Finding pointers to doc strings...done") | 145 | (message "Finding pointers to doc strings...done") |
| @@ -153,7 +165,9 @@ | |||
| 153 | (setq name (concat (downcase (substring name 0 (match-beginning 0))) | 165 | (setq name (concat (downcase (substring name 0 (match-beginning 0))) |
| 154 | "-" | 166 | "-" |
| 155 | (substring name (match-end 0))))) | 167 | (substring name (match-end 0))))) |
| 156 | (message "Dumping under names emacs and %s" name)) | 168 | (if (eq system-type 'ms-dos) |
| 169 | (message "Dumping under the name emacs") | ||
| 170 | (message "Dumping under names emacs and %s" name))) | ||
| 157 | (condition-case () | 171 | (condition-case () |
| 158 | (delete-file "emacs") | 172 | (delete-file "emacs") |
| 159 | (file-error nil)) | 173 | (file-error nil)) |
| @@ -163,12 +177,13 @@ | |||
| 163 | ;; other GNU product's build process. | 177 | ;; other GNU product's build process. |
| 164 | (dump-emacs "emacs" "temacs") | 178 | (dump-emacs "emacs" "temacs") |
| 165 | ;; Recompute NAME now, so that it isn't set when we dump. | 179 | ;; Recompute NAME now, so that it isn't set when we dump. |
| 166 | (let ((name (concat "emacs-" emacs-version))) | 180 | (if (not (eq system-type 'ms-dos)) |
| 167 | (while (string-match "[^-+_.a-zA-Z0-9]+" name) | 181 | (let ((name (concat "emacs-" emacs-version))) |
| 168 | (setq name (concat (downcase (substring name 0 (match-beginning 0))) | 182 | (while (string-match "[^-+_.a-zA-Z0-9]+" name) |
| 169 | "-" | 183 | (setq name (concat (downcase (substring name 0 (match-beginning 0))) |
| 170 | (substring name (match-end 0))))) | 184 | "-" |
| 171 | (add-name-to-file "emacs" name t)) | 185 | (substring name (match-end 0))))) |
| 186 | (add-name-to-file "emacs" name t))) | ||
| 172 | (kill-emacs))) | 187 | (kill-emacs))) |
| 173 | 188 | ||
| 174 | ;; Avoid error if user loads some more libraries now. | 189 | ;; Avoid error if user loads some more libraries now. |