aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/modes.texi13
2 files changed, 14 insertions, 4 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 4c69a309ca8..151a6388c7f 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12012-02-23 Alan Mackenzie <acm@muc.de>
2
3 * modes.texi (Defining Minor Modes): Document the new keyword
4 :after-hook.
5
12012-02-21 Chong Yidong <cyd@gnu.org> 62012-02-21 Chong Yidong <cyd@gnu.org>
2 7
3 * files.texi (Files): Mention magic file names as arguments. 8 * files.texi (Files): Mention magic file names as arguments.
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index 09a96f23c5e..a4ee6f8327f 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -1594,15 +1594,20 @@ anything that can be used with the @code{setf} function
1594@var{place} can also be a cons @code{(@var{get} . @var{set})}, 1594@var{place} can also be a cons @code{(@var{get} . @var{set})},
1595where @var{get} is an expression that returns the current state, 1595where @var{get} is an expression that returns the current state,
1596and @var{set} is a function of one argument (a state) that sets it. 1596and @var{set} is a function of one argument (a state) that sets it.
1597
1598@item :after-hook @var{after-hook}
1599This defines a single lisp form which is evaluated after the mode hooks
1600have run. It should not be quoted.
1597@end table 1601@end table
1598 1602
1599Any other keyword arguments are passed directly to the 1603Any other keyword arguments are passed directly to the
1600@code{defcustom} generated for the variable @var{mode}. 1604@code{defcustom} generated for the variable @var{mode}.
1601 1605
1602The command named @var{mode} first performs the standard actions such 1606The command named @var{mode} first performs the standard actions such as
1603as setting the variable named @var{mode} and then executes the 1607setting the variable named @var{mode} and then executes the @var{body}
1604@var{body} forms, if any. It finishes by running the mode hook 1608forms, if any. It then runs the mode hook variable
1605variable @code{@var{mode}-hook}. 1609@code{@var{mode}-hook} and finishes by evaluating any form in
1610@code{:after-hook}.
1606@end defmac 1611@end defmac
1607 1612
1608 The initial value must be @code{nil} except in cases where (1) the 1613 The initial value must be @code{nil} except in cases where (1) the