summaryrefslogtreecommitdiff
path: root/doc/lispref/loading.texi
diff options
context:
space:
mode:
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
commit8dc8ab6b42b021f9796e59cfdb758b48aaf55ffc (patch)
treebded4e47209dbc37934e0ed62437808b43298d67 /doc/lispref/loading.texi
parent5c266a71c160ed823e9ef69d2ff44fb0bb81ff77 (diff)
downloademacs-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 'doc/lispref/loading.texi')
-rw-r--r--doc/lispref/loading.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/lispref/loading.texi b/doc/lispref/loading.texi
index aa6ef307b18..e5364152d52 100644
--- a/doc/lispref/loading.texi
+++ b/doc/lispref/loading.texi
@@ -1063,7 +1063,7 @@ It then restores any autoloads formerly associated with those symbols.
(Loading saves these in the @code{autoload} property of the symbol.)
Before restoring the previous definitions, @code{unload-feature} runs
-@code{remove-hook} to remove functions in the library from certain
+@code{remove-hook} to remove functions defined by the library from certain
hooks. These hooks include variables whose names end in @samp{-hook}
(or the deprecated suffix @samp{-hooks}), plus those listed in
@code{unload-feature-special-hooks}, as well as
@@ -1071,7 +1071,7 @@ hooks. These hooks include variables whose names end in @samp{-hook}
function because important hooks refer to functions that are no longer
defined.
-Standard unloading activities also undoes ELP profiling of functions
+Standard unloading activities also undo ELP profiling of functions
in that library, unprovides any features provided by the library, and
cancels timers held in variables defined by the library.