diff options
| author | Richard M. Stallman | 1995-01-21 23:51:19 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-01-21 23:51:19 +0000 |
| commit | ee6bcc944a43ff57af8297f879fbb01f4b0223e6 (patch) | |
| tree | 99ddc73a832a4572f44d035eed510e7cbe678279 | |
| parent | e114e160d342360e736ad6c7b1df1acb9d032f36 (diff) | |
| download | emacs-ee6bcc944a43ff57af8297f879fbb01f4b0223e6.tar.gz emacs-ee6bcc944a43ff57af8297f879fbb01f4b0223e6.zip | |
Document force arg in unload-feature.
| -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 | |||
| 515 | reclaim memory for other Lisp objects. To do this, use the function | 515 | reclaim 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 |
| 519 | This command unloads the library that provided feature @var{feature}. | 519 | This command unloads the library that provided feature @var{feature}. |
| 520 | It undefines all functions, macros, and variables defined in that | 520 | It undefines all functions, macros, and variables defined in that |
| 521 | library with @code{defconst}, @code{defvar}, @code{defun}, | 521 | library 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 |
| 523 | any autoloads formerly associated with those symbols. | 523 | any autoloads formerly associated with those symbols. |
| 524 | |||
| 525 | Ordinarily, @code{unload-feature} refuses to unload a library on which | ||
| 526 | other 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 | ||
| 528 | optional argument @var{force} is non-@code{nil}, dependencies are | ||
| 529 | ignored 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 |