aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-02-08 06:36:57 +0000
committerRichard M. Stallman1996-02-08 06:36:57 +0000
commit2a664e7313642fc0917b98ecd8a1d43a65932707 (patch)
treed9800e5c1c8ecc41da01041c7727ccb91d7e14ac
parent81c63241a9c19a38831cf4221b713af1696330f3 (diff)
downloademacs-2a664e7313642fc0917b98ecd8a1d43a65932707.tar.gz
emacs-2a664e7313642fc0917b98ecd8a1d43a65932707.zip
Clarify site-load.el vs site-init.el and how to deal with doc strings.
-rw-r--r--lispref/internals.texi51
1 files changed, 37 insertions, 14 deletions
diff --git a/lispref/internals.texi b/lispref/internals.texi
index c1b17f62b4a..76ba1043308 100644
--- a/lispref/internals.texi
+++ b/lispref/internals.texi
@@ -64,26 +64,49 @@ extra time is not too severe a problem.
64 64
65@cindex @file{site-load.el} 65@cindex @file{site-load.el}
66 You can specify additional files to preload by writing a library named 66 You can specify additional files to preload by writing a library named
67@file{site-load.el} that loads them. You may need to increase the 67@file{site-load.el} that loads them. You may need to increase the value
68value of @code{PURESIZE}, in @file{src/puresize.h}, to make room for the 68of @code{PURESIZE}, in @file{src/puresize.h}, to make room for the
69additional files. (Try adding increments of 20000 until it is big 69additional data. (Try adding increments of 20000 until it is big
70enough.) However, the advantage of preloading additional files 70enough.) However, the advantage of preloading additional files
71decreases as machines get faster. On modern machines, it is usually not 71decreases as machines get faster. On modern machines, it is usually not
72advisable. 72advisable.
73 73
74 After @file{loadup.el} reads @file{site-load.el}, it finds the
75documentation strings for primitive and preloaded functions (and
76variables) in the file @file{etc/DOC} where they are stored, by calling
77@code{Snarf-documentation} (@pxref{Accessing Documentation}).
78
74@cindex @file{site-init.el} 79@cindex @file{site-init.el}
75 You can specify other Lisp expressions to execute just before dumping 80 You can specify other Lisp expressions to execute just before dumping
76by putting them in a library named @file{site-init.el}. However, if 81by putting them in a library named @file{site-init.el}. This file is
77they might alter the behavior that users expect from an ordinary 82executed after the documentation strings are found.
78unmodified Emacs, it is better to put them in @file{default.el}, so that 83
79users can override them if they wish. @xref{Start-up Summary}. 84 If you want to preload function or variable definitions, there are
80 85three ways you can do this and make their documentation strings
81 Before @file{loadup.el} dumps the new executable, it finds the 86accessible when you subsequently run Emacs:
82documentation strings for primitive and preloaded functions (and 87
83variables) in the file where they are stored, by calling 88@itemize @bullet
84@code{Snarf-documentation} (@pxref{Accessing Documentation}). These 89@item
85strings were moved out of the @file{emacs} executable to make it 90Arrange to scan these files when producing the @file{etc/DOC} file,
86smaller. @xref{Documentation Basics}. 91and load them with @file{site-load.el}.
92
93@item
94Load the files with @file{site-init.el}, then copy the files into the
95installation directory for Lisp files when you install Emacs.
96
97@item
98Specify a non-@code{nil} value for
99@code{byte-compile-dynamic-docstrings} as a local variable in each these
100files, and load them with either @file{site-load.el} or
101@file{site-init.el}. (This method has the drawback that the
102documentation strings take up space in Emacs all the time.)
103@end itemize
104
105 It is not advisable to put anything in @file{site-load.el} or
106@file{site-init.el} that would alter any of the features that users
107expect in an ordinary unmodified Emacs. If you feel you must override
108normal features for your site, do it with @file{default.el}, so that
109users can override your changes if they wish. @xref{Start-up Summary}.
87 110
88@defun dump-emacs to-file from-file 111@defun dump-emacs to-file from-file
89@cindex unexec 112@cindex unexec