# HG changeset patch # User Richard M. Stallman # Date 790732279 0 # Node ID e4423ed2b4cb89681cdccde1c1c9b0451c8cb785 # Parent e07dfdbb02d1a432e431c16c7f196131c8ff9b90 Document force arg in unload-feature. diff -r e07dfdbb02d1 -r e4423ed2b4cb lispref/loading.texi --- a/lispref/loading.texi Sat Jan 21 22:23:22 1995 +0000 +++ b/lispref/loading.texi Sat Jan 21 23:51:19 1995 +0000 @@ -515,12 +515,18 @@ reclaim memory for other Lisp objects. To do this, use the function @code{unload-feature}: -@deffn Command unload-feature feature +@deffn Command unload-feature feature &optional force This command unloads the library that provided feature @var{feature}. It undefines all functions, macros, and variables defined in that library with @code{defconst}, @code{defvar}, @code{defun}, @code{defmacro}, @code{defsubst} and @code{defalias}. It then restores any autoloads formerly associated with those symbols. + +Ordinarily, @code{unload-feature} refuses to unload a library on which +other loaded libraries depend. (A library @var{a} depends on library +@var{b} if @var{a} contains a @code{require} for @var{b}.) If the +optional argument @var{force} is non-@code{nil}, dependencies are +ignored and you can unload any library. @end deffn The @code{unload-feature} function is written in Lisp; its actions are