aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-01-21 23:51:19 +0000
committerRichard M. Stallman1995-01-21 23:51:19 +0000
commitee6bcc944a43ff57af8297f879fbb01f4b0223e6 (patch)
tree99ddc73a832a4572f44d035eed510e7cbe678279
parente114e160d342360e736ad6c7b1df1acb9d032f36 (diff)
downloademacs-ee6bcc944a43ff57af8297f879fbb01f4b0223e6.tar.gz
emacs-ee6bcc944a43ff57af8297f879fbb01f4b0223e6.zip
Document force arg in unload-feature.
-rw-r--r--lispref/loading.texi8
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
515reclaim memory for other Lisp objects. To do this, use the function 515reclaim memory for other Lisp objects. To do this, use the function
516@code{unload-feature}: 516@code{unload-feature}:
517 517
518@deffn Command unload-feature feature 518@deffn Command unload-feature feature &optional force
519This command unloads the library that provided feature @var{feature}. 519This command unloads the library that provided feature @var{feature}.
520It undefines all functions, macros, and variables defined in that 520It undefines all functions, macros, and variables defined in that
521library with @code{defconst}, @code{defvar}, @code{defun}, 521library with @code{defconst}, @code{defvar}, @code{defun},
522@code{defmacro}, @code{defsubst} and @code{defalias}. It then restores 522@code{defmacro}, @code{defsubst} and @code{defalias}. It then restores
523any autoloads formerly associated with those symbols. 523any autoloads formerly associated with those symbols.
524
525Ordinarily, @code{unload-feature} refuses to unload a library on which
526other loaded libraries depend. (A library @var{a} depends on library
527@var{b} if @var{a} contains a @code{require} for @var{b}.) If the
528optional argument @var{force} is non-@code{nil}, dependencies are
529ignored and you can unload any library.
524@end deffn 530@end deffn
525 531
526 The @code{unload-feature} function is written in Lisp; its actions are 532 The @code{unload-feature} function is written in Lisp; its actions are