[Top][All Lists]
[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: |
Sat, 14 May 2005 11:25:38 -0400 |
Index: emacs/lispref/modes.texi
diff -c emacs/lispref/modes.texi:1.101 emacs/lispref/modes.texi:1.102
*** emacs/lispref/modes.texi:1.101 Sat May 14 13:59:41 2005
--- emacs/lispref/modes.texi Sat May 14 15:25:38 2005
***************
*** 2836,2845 ****
Every major mode function is supposed to run a normal hook called the
@dfn{mode hook} as the last step of initialization. This makes it easy
for a user to customize the behavior of the mode, by overriding the
! buffer-local variable assignments already made by the mode. But hooks
! are used in other contexts too. For example, the hook
! @code{suspend-hook} runs just before Emacs suspends itself
! (@pxref{Suspending Emacs}).
The recommended way to add a hook function to a normal hook is by
calling @code{add-hook} (see below). The hook functions may be any of
--- 2836,2845 ----
Every major mode function is supposed to run a normal hook called the
@dfn{mode hook} as the last step of initialization. This makes it easy
for a user to customize the behavior of the mode, by overriding the
! buffer-local variable assignments already made by the mode. Most
! minor modes also run a mode hook at their end. But hooks are used in
! other contexts too. For example, the hook @code{suspend-hook} runs
! just before Emacs suspends itself (@pxref{Suspending Emacs}).
The recommended way to add a hook function to a normal hook is by
calling @code{add-hook} (see below). The hook functions may be any of
***************
*** 2937,2942 ****
--- 2937,2946 ----
argument @var{append} is address@hidden, the new hook function goes at
the end of the hook list and will be executed last.
+ @code{add-hook} can handle the cases where @var{hook} is void or its
+ value is a single function; it sets or changes the value to a list of
+ functions.
+
If @var{local} is address@hidden, that says to add @var{function} to
the buffer-local hook list instead of to the global hook list. If
needed, this makes the hook buffer-local and adds @code{t} to the
- [Emacs-diffs] Changes to emacs/lispref/modes.texi, Richard M . Stallman, 2005/05/01
- [Emacs-diffs] Changes to emacs/lispref/modes.texi, Lute Kamstra, 2005/05/12
- [Emacs-diffs] Changes to emacs/lispref/modes.texi, Richard M . Stallman, 2005/05/14
- [Emacs-diffs] Changes to emacs/lispref/modes.texi,
Luc Teirlinck <=
- [Emacs-diffs] Changes to emacs/lispref/modes.texi, Luc Teirlinck, 2005/05/14
- [Emacs-diffs] Changes to emacs/lispref/modes.texi, Luc Teirlinck, 2005/05/15
- [Emacs-diffs] Changes to emacs/lispref/modes.texi, Lute Kamstra, 2005/05/17
- [Emacs-diffs] Changes to emacs/lispref/modes.texi, Luc Teirlinck, 2005/05/18
- [Emacs-diffs] Changes to emacs/lispref/modes.texi, Luc Teirlinck, 2005/05/19
- [Emacs-diffs] Changes to emacs/lispref/modes.texi, Luc Teirlinck, 2005/05/21
- [Emacs-diffs] Changes to emacs/lispref/modes.texi, Lute Kamstra, 2005/05/23
- [Emacs-diffs] Changes to emacs/lispref/modes.texi, Richard M . Stallman, 2005/05/29
- [Emacs-diffs] Changes to emacs/lispref/modes.texi, Luc Teirlinck, 2005/05/29
- [Emacs-diffs] Changes to emacs/lispref/modes.texi, Luc Teirlinck, 2005/05/29