diff options
| author | Richard M. Stallman | 2007-10-10 20:17:29 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2007-10-10 20:17:29 +0000 |
| commit | 70d6f4fe9aa24895daf65d0e644fc7f87a67041d (patch) | |
| tree | f9d5d2c56b785006a20c0cc884a661dfb8eb09c2 | |
| parent | d9f555a19a50feb07c4f4230c73b0d2ba577aba8 (diff) | |
| download | emacs-70d6f4fe9aa24895daf65d0e644fc7f87a67041d.tar.gz emacs-70d6f4fe9aa24895daf65d0e644fc7f87a67041d.zip | |
(unload-feature): Doc fix.
| -rw-r--r-- | lisp/loadhist.el | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/lisp/loadhist.el b/lisp/loadhist.el index 70f2ee20646..4e9ee480d65 100644 --- a/lisp/loadhist.el +++ b/lisp/loadhist.el | |||
| @@ -154,14 +154,16 @@ documentation of `unload-feature' for details.") | |||
| 154 | If the feature is required by any other loaded code, and prefix arg FORCE | 154 | If the feature is required by any other loaded code, and prefix arg FORCE |
| 155 | is nil, raise an error. | 155 | is nil, raise an error. |
| 156 | 156 | ||
| 157 | This function tries to undo modifications made by the package to | 157 | This function tries to undo any modifications that the package has |
| 158 | hooks. Packages may define a hook FEATURE-unload-hook that is called | 158 | made to hook values in Emacs. Normally it does this using heuristics. |
| 159 | instead of the normal heuristics for doing this. Such a hook should | 159 | The packages may define a hook `FEATURE-unload-hook'; if that exists, |
| 160 | undo all the relevant global state changes that may have been made by | 160 | it is called instead of the normal heuristics. |
| 161 | loading the package or executing functions in it. It has access to | 161 | |
| 162 | the package's feature list (before anything is unbound) in the | 162 | Such a hook should undo all the relevant global state changes that may |
| 163 | variable `unload-hook-features-list' and could remove features from it | 163 | have been made by loading the package or executing functions in it. |
| 164 | in the event that the package has done something normally-ill-advised, | 164 | It has access to the package's feature list (before anything is unbound) |
| 165 | in the variable `unload-hook-features-list' and could remove features | ||
| 166 | from it in the event that the package has done something strange, | ||
| 165 | such as redefining an Emacs function." | 167 | such as redefining an Emacs function." |
| 166 | (interactive | 168 | (interactive |
| 167 | (list | 169 | (list |