/[emacs]/emacs/lispref/loading.texi
ViewVC logotype

Diff of /emacs/lispref/loading.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.33.4.1 by miles, Fri Apr 4 06:20:42 2003 UTC revision 1.33.4.2 by miles, Tue Oct 14 23:10:12 2003 UTC
# Line 148  The function should accept one argument, Line 148  The function should accept one argument,
148  Normally, the variable's value is @code{nil}, which means those  Normally, the variable's value is @code{nil}, which means those
149  functions should use @code{read}.  functions should use @code{read}.
150    
151  @strong{Note:} Instead of using this variable, it is cleaner to use  Instead of using this variable, it is cleaner to use another, newer
152  another, newer feature: to pass the function as the @var{read-function}  feature: to pass the function as the @var{read-function} argument to
153  argument to @code{eval-region}.  @xref{Eval}.  @code{eval-region}.  @xref{Eval}.
154  @end defvar  @end defvar
155    
156    For information about how @code{load} is used in building Emacs, see    For information about how @code{load} is used in building Emacs, see
# Line 286  interactively, the argument @var{interac Line 286  interactively, the argument @var{interac
286  tells @code{locate-library} to display the file name in the echo area.  tells @code{locate-library} to display the file name in the echo area.
287  @end deffn  @end deffn
288    
289    @defvar load-suffixes
290    This variable is a list of suffixes (strings) that @code{load} should
291    try adding to the specified file name.  The default value is
292    @code{(".elc" ".el")}.  There is no need to include the null suffix.
293    @end defvar
294    
295  @node Loading Non-ASCII  @node Loading Non-ASCII
296  @section Loading Non-@sc{ascii} Characters  @section Loading Non-@sc{ascii} Characters
297    
# Line 650  The argument @var{feature} must be a sym Line 656  The argument @var{feature} must be a sym
656    
657  If provided, @var{subfeatures} should be a list of symbols indicating  If provided, @var{subfeatures} should be a list of symbols indicating
658  a set of specific subfeatures provided by this version of @var{feature}.  a set of specific subfeatures provided by this version of @var{feature}.
659    You can test the presence of a subfeature using @code{featurep}.
660    
661  @smallexample  @smallexample
662  features  features
# Line 662  features Line 669  features
669  @end smallexample  @end smallexample
670    
671  When a file is loaded to satisfy an autoload, and it stops due to an  When a file is loaded to satisfy an autoload, and it stops due to an
672  error in the evaluating its contents, any function definitions or  error in the evaluation of its contents, any function definitions or
673  @code{provide} calls that occurred during the load are undone.  @code{provide} calls that occurred during the load are undone.
674  @xref{Autoload}.  @xref{Autoload}.
675  @end defun  @end defun
# Line 685  provided}, unless @var{noerror} is non-@ Line 692  provided}, unless @var{noerror} is non-@
692  @end defun  @end defun
693    
694  @defun featurep feature &optional subfeature  @defun featurep feature &optional subfeature
695  This function returns @code{t} if @var{feature} has been provided in the  This function returns @code{t} if @var{feature} has been provided in
696  current Emacs session (i.e.@:, if @var{feature} is a member of  the current Emacs session (i.e.@:, if @var{feature} is a member of
697  @code{features}.)  If @var{subfeature} is non-nil, then the function  @code{features}.)  If @var{subfeature} is non-@code{nil}, then the
698  returns @code{t} only if that subfeature is provided as well (i.e.@:  function returns @code{t} only if that subfeature is provided as well
699  if @var{subfeature} is a member of the @code{subfeature} property  (i.e.@: if @var{subfeature} is a member of the @code{subfeature}
700  of the @var{feature} symbol.)  property of the @var{feature} symbol.)
701  @end defun  @end defun
702    
703  @defvar features  @defvar features
# Line 717  library with @code{defun}, @code{defalia Line 724  library with @code{defun}, @code{defalia
724  It then restores any autoloads formerly associated with those symbols.  It then restores any autoloads formerly associated with those symbols.
725  (Loading saves these in the @code{autoload} property of the symbol.)  (Loading saves these in the @code{autoload} property of the symbol.)
726    
727    @vindex unload-feature-special-hooks
728  Before restoring the previous definitions, @code{unload-feature} runs  Before restoring the previous definitions, @code{unload-feature} runs
729  @code{remove-hook} to remove functions in the library from certain  @code{remove-hook} to remove functions in the library from certain
730  hooks.  These hooks include variables whose names end in @samp{hook} or  hooks.  These hooks include variables whose names end in @samp{hook}
731  @samp{-hooks}, plus those listed in @code{loadhist-special-hooks}.  This  or @samp{-hooks}, plus those listed in
732  is to prevent Emacs from ceasing to function because important hooks  @code{unload-feature-special-hooks}.  This is to prevent Emacs from
733  refer to functions that are no longer defined.  ceasing to function because important hooks refer to functions that
734    are no longer defined.
735    
736  @vindex @var{feature}-unload-hook  @vindex @var{feature}-unload-hook
737  If these measures are not sufficient to prevent malfunction, a library  If these measures are not sufficient to prevent malfunction, a library
# Line 846  implement @code{eval-after-load}. Line 855  implement @code{eval-after-load}.
855  @end defvar  @end defvar
856    
857  @c Emacs 19 feature  @c Emacs 19 feature
858    
859    @ignore
860       arch-tag: df731f89-0900-4389-a436-9105241b6f7a
861    @end ignore

Legend:
Removed from v.1.33.4.1  
changed lines
  Added in v.1.33.4.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26