]> code.delx.au - gnu-emacs/blobdiff - lispref/modes.texi
(Mode Hooks): Fix typo.
[gnu-emacs] / lispref / modes.texi
index 488265b0b68198825aee08c5ad36ea06f1c95b79..f8c1ae82a4ed27aced07781b06133478efa50d05 100644 (file)
@@ -437,10 +437,8 @@ The major mode command may start by calling some other major mode
 command (called the @dfn{parent mode}) and then alter some of its
 settings.  A mode that does this is called a @dfn{derived mode}.  The
 recommended way to define one is to use @code{define-derived-mode},
-but this is not required.  Such a mode should use
-@code{delay-mode-hooks} around its entire body (including the call to
-the parent mode command) @emph{except} for the final call to
-@code{run-mode-hooks}, which runs the derived mode's hook.  (Using
+but this is not required.  Such a mode should call the parent mode
+command inside a @code{delay-mode-hooks} form.  (Using
 @code{define-derived-mode} does this automatically.)  @xref{Derived
 Modes}, and @ref{Mode Hooks}.
 
@@ -1133,7 +1131,7 @@ in sequence at the end, just before
   These conventions are new in Emacs 22, and some major modes
 implemented by users do not follow them yet.  So if you put a function
 onto @code{after-change-major-mode-hook}, keep in mind that some modes
-will fail to run it.  If user complains about that, you can respond,
+will fail to run it.  If user complains about that, you can respond,
 ``That major mode fails to follow Emacs conventions, and that's why it
 fails to work.  Please fix the major mode.''  In most cases, that is
 good enough, so go ahead and use @code{after-change-major-mode-hook}.