diff options
| author | Richard M. Stallman | 2003-10-05 13:56:53 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-10-05 13:56:53 +0000 |
| commit | 0373c25e8746df2c09a9c058c7db0cdb7022c57e (patch) | |
| tree | 2ba9be62e2563f1f4e19f591de41a00cb11137dd | |
| parent | bb3edd151a554e3eab4353c22d1e8c72bfdccd2d (diff) | |
| download | emacs-0373c25e8746df2c09a9c058c7db0cdb7022c57e.tar.gz emacs-0373c25e8746df2c09a9c058c7db0cdb7022c57e.zip | |
(Named Features): In `provide', say how to test for subfeatures.
(Unloading): In unload-feature, use new var name
unload-feature-special-hooks.
| -rw-r--r-- | lispref/loading.texi | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lispref/loading.texi b/lispref/loading.texi index 71ae09284a8..4f031c5146c 100644 --- a/lispref/loading.texi +++ b/lispref/loading.texi | |||
| @@ -656,6 +656,7 @@ The argument @var{feature} must be a symbol. @code{provide} returns | |||
| 656 | 656 | ||
| 657 | If provided, @var{subfeatures} should be a list of symbols indicating | 657 | If provided, @var{subfeatures} should be a list of symbols indicating |
| 658 | a set of specific subfeatures provided by this version of @var{feature}. | 658 | a set of specific subfeatures provided by this version of @var{feature}. |
| 659 | You can test the presence of a subfeature using @code{featurep}. | ||
| 659 | 660 | ||
| 660 | @smallexample | 661 | @smallexample |
| 661 | features | 662 | features |
| @@ -723,12 +724,14 @@ library with @code{defun}, @code{defalias}, @code{defsubst}, | |||
| 723 | It then restores any autoloads formerly associated with those symbols. | 724 | It then restores any autoloads formerly associated with those symbols. |
| 724 | (Loading saves these in the @code{autoload} property of the symbol.) | 725 | (Loading saves these in the @code{autoload} property of the symbol.) |
| 725 | 726 | ||
| 727 | @vindex unload-feature-special-hooks | ||
| 726 | Before restoring the previous definitions, @code{unload-feature} runs | 728 | Before restoring the previous definitions, @code{unload-feature} runs |
| 727 | @code{remove-hook} to remove functions in the library from certain | 729 | @code{remove-hook} to remove functions in the library from certain |
| 728 | hooks. These hooks include variables whose names end in @samp{hook} or | 730 | hooks. These hooks include variables whose names end in @samp{hook} |
| 729 | @samp{-hooks}, plus those listed in @code{loadhist-special-hooks}. This | 731 | or @samp{-hooks}, plus those listed in |
| 730 | is to prevent Emacs from ceasing to function because important hooks | 732 | @code{unload-feature-special-hooks}. This is to prevent Emacs from |
| 731 | refer to functions that are no longer defined. | 733 | ceasing to function because important hooks refer to functions that |
| 734 | are no longer defined. | ||
| 732 | 735 | ||
| 733 | @vindex @var{feature}-unload-hook | 736 | @vindex @var{feature}-unload-hook |
| 734 | If these measures are not sufficient to prevent malfunction, a library | 737 | If these measures are not sufficient to prevent malfunction, a library |