emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lispref/modes.texi


From: Luc Teirlinck
Subject: [Emacs-diffs] Changes to emacs/lispref/modes.texi
Date: Sun, 29 May 2005 10:44:09 -0400

Index: emacs/lispref/modes.texi
diff -c emacs/lispref/modes.texi:1.110 emacs/lispref/modes.texi:1.111
*** emacs/lispref/modes.texi:1.110      Sun May 29 08:28:51 2005
--- emacs/lispref/modes.texi    Sun May 29 14:44:08 2005
***************
*** 437,446 ****
  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
  @code{define-derived-mode} does this automatically.)  @xref{Derived
  Modes}, and @ref{Mode Hooks}.
  
--- 437,444 ----
  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 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}.
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]