Mercurial > emacs
annotate lisp/loadup.el @ 767:02bfc9709961
*** empty log message ***
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 14 Jul 1992 02:11:50 +0000 |
parents | f8688580137c |
children | c2dbf1fe0506 |
rev | line source |
---|---|
659
505130d1ddf8
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
648
diff
changeset
|
1 ;;; loadup.el --- load up standardly loaded Lisp files for Emacs. |
505130d1ddf8
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
648
diff
changeset
|
2 |
35 | 3 ;; This is loaded into a bare Emacs to make a dumpable one. |
604 | 4 ;; Copyright (C) 1985, 1986, 1992 Free Software Foundation, Inc. |
35 | 5 |
6 ;; This file is part of GNU Emacs. | |
7 | |
8 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
9 ;; it under the terms of the GNU General Public License as published by | |
10 ;; the Free Software Foundation; either version 1, or (at your option) | |
11 ;; any later version. | |
12 | |
13 ;; GNU Emacs is distributed in the hope that it will be useful, | |
14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 ;; GNU General Public License for more details. | |
17 | |
18 ;; You should have received a copy of the GNU General Public License | |
19 ;; along with GNU Emacs; see the file COPYING. If not, write to | |
20 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | |
21 | |
648 | 22 ;;; We don't want to have any undo records in the dumped Emacs. |
23 (buffer-disable-undo "*scratch*") | |
35 | 24 |
25 (load "subr") | |
755 | 26 (garbage-collect) |
767
02bfc9709961
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
758
diff
changeset
|
27 (load "byte-run") |
758 | 28 (garbage-collect) |
408
66f3891c43fd
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
393
diff
changeset
|
29 (load "map-ynp") |
35 | 30 (garbage-collect) |
31 (load "loaddefs.el") ;Don't get confused if someone compiled loaddefs by mistake. | |
32 (garbage-collect) | |
33 (load "simple") | |
34 (garbage-collect) | |
35 (load "help") | |
36 (garbage-collect) | |
37 (load "files") | |
38 (garbage-collect) | |
39 (load "indent") | |
755 | 40 (garbage-collect) |
35 | 41 (load "window") |
393 | 42 (garbage-collect) |
43 (if (fboundp 'delete-screen) | |
44 (load "screen")) | |
755 | 45 (garbage-collect) |
35 | 46 (load "paths.el") ;Don't get confused if someone compiled paths by mistake. |
47 (garbage-collect) | |
48 (load "startup") | |
755 | 49 (garbage-collect) |
35 | 50 (load "lisp") |
51 (garbage-collect) | |
52 (load "page") | |
755 | 53 (garbage-collect) |
35 | 54 (load "register") |
55 (garbage-collect) | |
56 (load "paragraphs") | |
755 | 57 (garbage-collect) |
35 | 58 (load "lisp-mode") |
59 (garbage-collect) | |
60 (load "text-mode") | |
755 | 61 (garbage-collect) |
35 | 62 (load "fill") |
63 (garbage-collect) | |
64 (load "c-mode") | |
65 (garbage-collect) | |
66 (load "isearch") | |
67 (garbage-collect) | |
68 (load "replace") | |
69 (if (eq system-type 'vax-vms) | |
70 (progn | |
71 (garbage-collect) | |
72 (load "vmsproc"))) | |
73 (garbage-collect) | |
74 (load "abbrev") | |
75 (garbage-collect) | |
76 (load "buff-menu") | |
77 (if (eq system-type 'vax-vms) | |
78 (progn | |
79 (garbage-collect) | |
80 (load "vms-patch"))) | |
81 (if (fboundp 'atan) ; preload some constants and | |
82 (progn ; floating pt. functions if | |
83 (garbage-collect) ; we have float support. | |
84 (load "float-sup"))) | |
85 | |
86 ;If you want additional libraries to be preloaded and their | |
87 ;doc strings kept in the DOC file rather than in core, | |
88 ;you may load them with a "site-load.el" file. | |
89 ;But you must also cause them to be scanned when the DOC file | |
445 | 90 ;is generated. For VMS, you must edit ../vms/makedoc.com. |
35 | 91 ;For other systems, you must edit ../src/ymakefile. |
92 (if (load "site-load" t) | |
93 (garbage-collect)) | |
94 | |
95 (load "version.el") ;Don't get confused if someone compiled version.el by mistake. | |
96 | |
97 ;; Note: all compiled Lisp files loaded above this point | |
98 ;; must be among the ones parsed by make-docfile | |
99 ;; to construct DOC. Any that are not processed | |
100 ;; for DOC will not have doc strings in the dumped Emacs. | |
101 | |
102 (message "Finding pointers to doc strings...") | |
103 (if (fboundp 'dump-emacs) | |
104 (let ((name emacs-version)) | |
105 (while (string-match "[^-+_.a-zA-Z0-9]+" name) | |
106 (setq name (concat (downcase (substring name 0 (match-beginning 0))) | |
107 "-" | |
108 (substring name (match-end 0))))) | |
604 | 109 (copy-file (expand-file-name "../etc/DOC") |
110 (concat (expand-file-name "../etc/DOC-") name) | |
35 | 111 t) |
112 (Snarf-documentation (concat "DOC-" name))) | |
113 (Snarf-documentation "DOC")) | |
114 (message "Finding pointers to doc strings...done") | |
115 | |
116 ;Note: You can cause additional libraries to be preloaded | |
117 ;by writing a site-init.el that loads them. | |
118 ;See also "site-load" above. | |
119 (load "site-init" t) | |
120 (garbage-collect) | |
121 | |
648 | 122 ;;; At this point, we're ready to resume undo recording for scratch. |
123 (buffer-enable-undo "*scratch*") | |
124 | |
35 | 125 (if (or (equal (nth 3 command-line-args) "dump") |
126 (equal (nth 4 command-line-args) "dump")) | |
127 (if (eq system-type 'vax-vms) | |
128 (progn | |
129 (message "Dumping data as file temacs.dump") | |
130 (dump-emacs "temacs.dump" "temacs") | |
131 (kill-emacs)) | |
132 (let ((name (concat "emacs-" emacs-version))) | |
133 (while (string-match "[^-+_.a-zA-Z0-9]+" name) | |
134 (setq name (concat (downcase (substring name 0 (match-beginning 0))) | |
135 "-" | |
136 (substring name (match-end 0))))) | |
137 (message "Dumping under names xemacs and %s" name)) | |
138 (condition-case () | |
139 (delete-file "xemacs") | |
140 (file-error nil)) | |
141 (dump-emacs "xemacs" "temacs") | |
142 ;; Recompute NAME now, so that it isn't set when we dump. | |
143 (let ((name (concat "emacs-" emacs-version))) | |
144 (while (string-match "[^-+_.a-zA-Z0-9]+" name) | |
145 (setq name (concat (downcase (substring name 0 (match-beginning 0))) | |
146 "-" | |
147 (substring name (match-end 0))))) | |
148 (add-name-to-file "xemacs" name t)) | |
149 (kill-emacs))) | |
150 | |
151 ;; Avoid error if user loads some more libraries now. | |
152 (setq purify-flag nil) | |
153 | |
154 ;; For machines with CANNOT_DUMP defined in config.h, | |
155 ;; this file must be loaded each time Emacs is run. | |
156 ;; So run the startup code now. | |
157 | |
158 (or (fboundp 'dump-emacs) | |
159 (eval top-level)) | |
659
505130d1ddf8
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
648
diff
changeset
|
160 |
505130d1ddf8
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
648
diff
changeset
|
161 ;;; loadup.el ends here |