diff options
| author | Alan Mackenzie | 2012-02-23 18:51:22 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2012-02-23 18:51:22 +0000 |
| commit | 2cb228f753fbaea3a86dfc1fd57b61db13624a2d (patch) | |
| tree | f9f55e68442986ba10b4a25129855beec6b450d2 /doc | |
| parent | b2e4ca7d12b306cd15d4ec24ce7749db56729e2b (diff) | |
| download | emacs-2cb228f753fbaea3a86dfc1fd57b61db13624a2d.tar.gz emacs-2cb228f753fbaea3a86dfc1fd57b61db13624a2d.zip | |
Add new parameter :after-hook to define-minor-mode. Use this in the
definition of font-lock-mode.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/modes.texi | 13 |
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 @@ | |||
| 1 | 2012-02-23 Alan Mackenzie <acm@muc.de> | ||
| 2 | |||
| 3 | * modes.texi (Defining Minor Modes): Document the new keyword | ||
| 4 | :after-hook. | ||
| 5 | |||
| 1 | 2012-02-21 Chong Yidong <cyd@gnu.org> | 6 | 2012-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})}, |
| 1595 | where @var{get} is an expression that returns the current state, | 1595 | where @var{get} is an expression that returns the current state, |
| 1596 | and @var{set} is a function of one argument (a state) that sets it. | 1596 | and @var{set} is a function of one argument (a state) that sets it. |
| 1597 | |||
| 1598 | @item :after-hook @var{after-hook} | ||
| 1599 | This defines a single lisp form which is evaluated after the mode hooks | ||
| 1600 | have run. It should not be quoted. | ||
| 1597 | @end table | 1601 | @end table |
| 1598 | 1602 | ||
| 1599 | Any other keyword arguments are passed directly to the | 1603 | Any 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 | ||
| 1602 | The command named @var{mode} first performs the standard actions such | 1606 | The command named @var{mode} first performs the standard actions such as |
| 1603 | as setting the variable named @var{mode} and then executes the | 1607 | setting the variable named @var{mode} and then executes the @var{body} |
| 1604 | @var{body} forms, if any. It finishes by running the mode hook | 1608 | forms, if any. It then runs the mode hook variable |
| 1605 | variable @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 |