# HG changeset patch # User Luc Teirlinck # Date 1117377848 0 # Node ID f13e9e778c14ca5c33c4a6455f937ef7db3ea88c # Parent 72f9770b91d452551641698d1459dbe413d5b654 (Major Mode Conventions): A derived mode only needs to put the call to the parent mode inside `delay-mode-hooks'. diff -r 72f9770b91d4 -r f13e9e778c14 lispref/modes.texi --- a/lispref/modes.texi Sun May 29 14:38:52 2005 +0000 +++ b/lispref/modes.texi Sun May 29 14:44:08 2005 +0000 @@ -437,10 +437,8 @@ 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}.