diff options
| author | Richard M. Stallman | 1995-02-04 08:14:52 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-02-04 08:14:52 +0000 |
| commit | c642171ccb069a8c0900ab5a683d6450a19ef853 (patch) | |
| tree | 3c12f50b6b1992f2e3b855becb37ccb4d557cc8c | |
| parent | c31e6791360ab0d9ba6affe28ebf604ae2b244e1 (diff) | |
| download | emacs-c642171ccb069a8c0900ab5a683d6450a19ef853.tar.gz emacs-c642171ccb069a8c0900ab5a683d6450a19ef853.zip | |
Explain load-path and dumping.
| -rw-r--r-- | lispref/loading.texi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lispref/loading.texi b/lispref/loading.texi index 1819d84eaf3..01b648d0026 100644 --- a/lispref/loading.texi +++ b/lispref/loading.texi | |||
| @@ -172,6 +172,18 @@ the current directory, Emacs 18 temporarily adds the current directory | |||
| 172 | to the front of @code{load-path} so the file can be found there. Newer | 172 | to the front of @code{load-path} so the file can be found there. Newer |
| 173 | Emacs versions also find such files in the current directory, but | 173 | Emacs versions also find such files in the current directory, but |
| 174 | without altering @code{load-path}. | 174 | without altering @code{load-path}. |
| 175 | |||
| 176 | Dumping Emacs uses a special value of @code{load-path}. If the value of | ||
| 177 | @code{load-path} at the end of dumping is unchanged (that is, still the | ||
| 178 | same special value), the dumped Emacs switches to the ordinary | ||
| 179 | @code{load-path} value when it starts up, as decribed above. But if | ||
| 180 | @code{load-path} has any other value at the end of dumping, that value | ||
| 181 | is used for execution of the dumped Emacs also. | ||
| 182 | |||
| 183 | Therefore, if you want to change @code{load-path} temporarily for | ||
| 184 | loading a few libraries in @file{site-init.el} or @file{site-load.el}, | ||
| 185 | you should bind @code{load-path} locally with @code{let} around the | ||
| 186 | calls to @code{load}. | ||
| 175 | @end defopt | 187 | @end defopt |
| 176 | 188 | ||
| 177 | @defvar load-in-progress | 189 | @defvar load-in-progress |