comparison lispref/loading.texi @ 54035:5089d03a2061

(Unloading): Document unload-feature-special-hooks. Get rid of fns-NNN.el file.
author Richard M. Stallman <rms@gnu.org>
date Tue, 17 Feb 2004 00:58:59 +0000
parents 3abc89cd99a2
children c1864c2911cf
comparison
equal deleted inserted replaced
54034:dd88584a14e9 54035:5089d03a2061
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