diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-01-21 23:51:19 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-01-21 23:51:19 +0000 |
commit | c3875391f6ffcae51267a5a8c91c6dcd3f741f4e (patch) | |
tree | aff72c541eba7c5582dbd60d5cf4b36918318045 /lispref/loading.texi | |
parent | a63628fe70bd2b7b22e4f5a89db2184e42a8041e (diff) | |
download | emacs-c3875391f6ffcae51267a5a8c91c6dcd3f741f4e.tar.gz |
Document force arg in unload-feature.
Diffstat (limited to 'lispref/loading.texi')
-rw-r--r-- | lispref/loading.texi | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lispref/loading.texi b/lispref/loading.texi index 892473b9baf..1819d84eaf3 100644 --- a/lispref/loading.texi +++ b/lispref/loading.texi @@ -515,12 +515,18 @@ with a call to @code{provide}. The order of the elements in the 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 |