# HG changeset patch # User Richard M. Stallman # Date 1085926858 0 # Node ID c1864c2911cf52c6ab472fa5627d7fabbbf37417 # Parent 1b12270c8c78a41a7d4ac90f60020928d15580d5 (Named Features): Clarify return value and meaning of NOERROR. diff -r 1b12270c8c78 -r c1864c2911cf lispref/loading.texi --- a/lispref/loading.texi Sun May 30 13:35:41 2004 +0000 +++ b/lispref/loading.texi Sun May 30 14:20:58 2004 +0000 @@ -687,9 +687,14 @@ with an added suffix; a file whose name is just @var{feature} won't be used. -If loading the file fails to provide @var{feature}, @code{require} -signals an error, @samp{Required feature @var{feature} was not -provided}, unless @var{noerror} is non-@code{nil}. +If @var{noerror} is non-@code{nil}, that suppresses errors from actual +loading of the file. In that case, @code{require} returns @code{nil} +if loading the file fails. Normally, @code{require} returns +@var{feature}. + +If loading the file succeeds but does not provide @var{feature}, +@code{require} signals an error, @samp{Required feature @var{feature} +was not provided}. @end defun @defun featurep feature &optional subfeature