summaryrefslogtreecommitdiff
path: root/lispref
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-02-04 08:14:52 +0000
committerRichard M. Stallman <rms@gnu.org>1995-02-04 08:14:52 +0000
commitc11b2fdf46d7c9a8aabf3a028a022f55bb9ac8a9 (patch)
treec65ac2405b79dde5ebb9d0c26acad8c8a8ce28b2 /lispref
parentebb94245246ccae2907f485d654ac8855c586544 (diff)
downloademacs-c11b2fdf46d7c9a8aabf3a028a022f55bb9ac8a9.tar.gz
Explain load-path and dumping.
Diffstat (limited to 'lispref')
-rw-r--r--lispref/loading.texi12
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
to the front of @code{load-path} so the file can be found there. Newer
Emacs versions also find such files in the current directory, but
without altering @code{load-path}.
+
+Dumping Emacs uses a special value of @code{load-path}. If the value of
+@code{load-path} at the end of dumping is unchanged (that is, still the
+same special value), the dumped Emacs switches to the ordinary
+@code{load-path} value when it starts up, as decribed above. But if
+@code{load-path} has any other value at the end of dumping, that value
+is used for execution of the dumped Emacs also.
+
+Therefore, if you want to change @code{load-path} temporarily for
+loading a few libraries in @file{site-init.el} or @file{site-load.el},
+you should bind @code{load-path} locally with @code{let} around the
+calls to @code{load}.
@end defopt
@defvar load-in-progress