From 01f52a8797d5da496d96561f7003e2ef69c1eb0b Mon Sep 17 00:00:00 2001 From: Luc Teirlinck Date: Sun, 29 May 2005 14:44:08 +0000 Subject: (Major Mode Conventions): A derived mode only needs to put the call to the parent mode inside `delay-mode-hooks'. --- lispref/modes.texi | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lispref') diff --git a/lispref/modes.texi b/lispref/modes.texi index 488265b0b6..c815270543 100644 --- a/lispref/modes.texi +++ b/lispref/modes.texi @@ -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}. -- cgit v1.2.3