From: Markus Rost Date: Sun, 6 Jul 2003 01:31:52 +0000 (+0000) Subject: (Activation of Advice): Note that ad-start-advice is turned on by default. X-Git-Tag: ttn-vms-21-2-B4~9487 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8c761ea6121817494e51dff27f30c1bef9b51b81;p=emacs.git (Activation of Advice): Note that ad-start-advice is turned on by default. --- diff --git a/lispref/ChangeLog b/lispref/ChangeLog index c69bce9bd6b..3401dc190a6 100644 --- a/lispref/ChangeLog +++ b/lispref/ChangeLog @@ -1,3 +1,8 @@ +2003-07-06 Markus Rost + + * advice.texi (Activation of Advice): Note that ad-start-advice is + turned on by default. + 2003-06-22 Andreas Schwab * objects.texi (Symbol Type): Fix description of examples. diff --git a/lispref/advice.texi b/lispref/advice.texi index e5946db433f..92c37b83936 100644 --- a/lispref/advice.texi +++ b/lispref/advice.texi @@ -331,12 +331,14 @@ replaced with the new one. @cindex advice, activating By default, advice does not take effect when you define it---only when -you @dfn{activate} advice for the function that was advised. You can -request the activation of advice for a function when you define the -advice, by specifying the @code{activate} flag in the @code{defadvice}. -But normally you activate the advice for a function by calling the -function @code{ad-activate} or one of the other activation commands -listed below. +you @dfn{activate} advice for the function that was advised. However +the advice will be automatically activated when the function is +defined or redefined later. You can request the activation of advice +for a function when you define the advice, by specifying the +@code{activate} flag in the @code{defadvice}. But normally you +activate the advice for a function by calling the function +@code{ad-activate} or one of the other activation commands listed +below. Separating the activation of advice from the act of defining it permits you to add several pieces of advice to one function efficiently, without @@ -416,8 +418,7 @@ last time it was activated. @deffn Command ad-start-advice Turn on automatic advice activation when a function is defined or -redefined. If you turn on this mode, then advice takes effect -immediately when defined. +redefined. This mode is turned on by default. @end deffn @deffn Command ad-stop-advice