diff options
author | Štěpán Němec <stepnem@gmail.com> | 2020-04-06 17:05:33 +0200 |
---|---|---|
committer | Štěpán Němec <stepnem@gmail.com> | 2020-10-21 18:51:12 +0200 |
commit | 8dc8ab6b42b021f9796e59cfdb758b48aaf55ffc (patch) | |
tree | bded4e47209dbc37934e0ed62437808b43298d67 /lisp/loadhist.el | |
parent | 5c266a71c160ed823e9ef69d2ff44fb0bb81ff77 (diff) | |
download | emacs-8dc8ab6b42b021f9796e59cfdb758b48aaf55ffc.tar.gz emacs-8dc8ab6b42b021f9796e59cfdb758b48aaf55ffc.tar.bz2 emacs-8dc8ab6b42b021f9796e59cfdb758b48aaf55ffc.zip |
unload-feature: Correct doc string to match info manual and reality
'unload-feature' doesn't try to "undo any additions the library has
made" to hooks, it tries to remove functions defined by the library
from hooks, no matter how they got there.
* lisp/loadhist.el (unload-feature): Correct the doc string.
* doc/lispref/loading.texi (Unloading): Clarify, fix typo.
Diffstat (limited to 'lisp/loadhist.el')
-rw-r--r-- | lisp/loadhist.el | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lisp/loadhist.el b/lisp/loadhist.el index 81576679c35..8ac575e8e39 100644 --- a/lisp/loadhist.el +++ b/lisp/loadhist.el @@ -234,11 +234,10 @@ If the feature is required by any other loaded code, and prefix arg FORCE is nil, raise an error. Standard unloading activities include restoring old autoloads for -functions defined by the library, undoing any additions that the -library has made to hook variables or to `auto-mode-alist', undoing -ELP profiling of functions in that library, unproviding any features -provided by the library, and canceling timers held in variables -defined by the library. +functions defined by the library, removing such functions from +hooks and `auto-mode-alist', undoing their ELP profiling, +unproviding any features provided by the library, and canceling +timers held in variables defined by the library. If a function `FEATURE-unload-function' is defined, this function calls it with no arguments, before doing anything else. That function |