comparison lispref/loading.texi @ 83038:30ccd595ccb0

Merged in changes from CVS HEAD Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-98 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-99 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-100 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-101 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-102 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-78
author Karoly Lorentey <lorentey@elte.hu>
date Wed, 18 Feb 2004 17:10:32 +0000
parents 5089d03a2061
children c1864c2911cf
comparison
equal deleted inserted replaced
83037:03a73693678e 83038:30ccd595ccb0
171 directory). 171 directory).
172 @end defopt 172 @end defopt
173 173
174 The value of @code{load-path} is initialized from the environment 174 The value of @code{load-path} is initialized from the environment
175 variable @code{EMACSLOADPATH}, if that exists; otherwise its default 175 variable @code{EMACSLOADPATH}, if that exists; otherwise its default
176 value is specified in @file{emacs/src/paths.h} when Emacs is built. 176 value is specified in @file{emacs/src/epaths.h} when Emacs is built.
177 Then the list is expanded by adding subdirectories of the directories 177 Then the list is expanded by adding subdirectories of the directories
178 in the list. 178 in the list.
179 179
180 The syntax of @code{EMACSLOADPATH} is the same as used for @code{PATH}; 180 The syntax of @code{EMACSLOADPATH} is the same as used for @code{PATH};
181 @samp{:} (or @samp{;}, according to the operating system) separates 181 @samp{:} (or @samp{;}, according to the operating system) separates
788 788
789 The command @code{eval-region} updates @code{load-history}, but does so 789 The command @code{eval-region} updates @code{load-history}, but does so
790 by adding the symbols defined to the element for the file being visited, 790 by adding the symbols defined to the element for the file being visited,
791 rather than replacing that element. @xref{Eval}. 791 rather than replacing that element. @xref{Eval}.
792 792
793 Preloaded libraries don't contribute initially to @code{load-history}. 793 @defvar unload-feature-special-hooks
794 Instead, preloading writes information about preloaded libraries into a
795 file, which can be loaded later on to add information to
796 @code{load-history} describing the preloaded files. This file is
797 installed in @code{exec-directory} and has a name of the form
798 @file{fns-@var{emacsversion}.el}.
799
800 @findex symbol-file
801 See the source for the function @code{symbol-file}, for an example of
802 code that loads this file to find functions in preloaded libraries.
803
804 @defvar loadhist-special-hooks
805 This variable holds a list of hooks to be scanned before unloading a 794 This variable holds a list of hooks to be scanned before unloading a
806 library, to remove functions defined in the library. 795 library, to remove functions defined in the library.
807 @end defvar 796 @end defvar
808 797
809 @node Hooks for Loading 798 @node Hooks for Loading