]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't refer to obsolete FEATURE-unload-hook
authorEli Zaretskii <eliz@gnu.org>
Mon, 7 Nov 2016 17:39:54 +0000 (19:39 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 7 Nov 2016 17:39:54 +0000 (19:39 +0200)
* doc/lispref/tips.texi (Coding Conventions): Refer to
FEATURE-unload-function rather than its obsolete variant
FEATURE-unload-hook.  (Bug#24890)

doc/lispref/tips.texi

index d12de7aee2d7ad260804faa888a76c0add05feda..1ba9ad9701f17cf648944ca28569e87930b63472 100644 (file)
@@ -165,10 +165,10 @@ follow the naming conventions for hooks.  @xref{Hooks}.
 @item
 @cindex unloading packages, preparing for
 If loading the file adds functions to hooks, define a function
-@code{@var{feature}-unload-hook}, where @var{feature} is the name of
-the feature the package provides, and make it undo any such changes.
-Using @code{unload-feature} to unload the file will run this function.
-@xref{Unloading}.
+@code{@var{feature}-unload-function}, where @var{feature} is the name
+of the feature the package provides, and make it undo any such
+changes.  Using @code{unload-feature} to unload the file will run this
+function.  @xref{Unloading}.
 
 @item
 It is a bad idea to define aliases for the Emacs primitives.  Normally