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