Don't refer to obsolete FEATURE-unload-hook

* doc/lispref/tips.texi (Coding Conventions): Refer to
FEATURE-unload-function rather than its obsolete variant
FEATURE-unload-hook.  (Bug#24890)
This commit is contained in:
Eli Zaretskii 2016-11-07 19:39:54 +02:00
parent 4f478ca04b
commit 8da810f91b

View file

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