aboutsummaryrefslogtreecommitdiffstats
path: root/lispref/advice.texi
diff options
context:
space:
mode:
authorRichard M. Stallman2001-09-06 19:50:51 +0000
committerRichard M. Stallman2001-09-06 19:50:51 +0000
commit9012a201f92eeb7e06904eeecb663ba0ca90cea4 (patch)
treee16e82b8c6ee21044735259b5dab379f1ac2b2fa /lispref/advice.texi
parentae9b6b4a99dd216afb7bc8fac241a898576573da (diff)
downloademacs-9012a201f92eeb7e06904eeecb663ba0ca90cea4.tar.gz
emacs-9012a201f92eeb7e06904eeecb663ba0ca90cea4.zip
Minor clarifications.
Diffstat (limited to 'lispref/advice.texi')
-rw-r--r--lispref/advice.texi12
1 files changed, 7 insertions, 5 deletions
diff --git a/lispref/advice.texi b/lispref/advice.texi
index c860f5dd5d2..c2c85ae2047 100644
--- a/lispref/advice.texi
+++ b/lispref/advice.texi
@@ -14,10 +14,12 @@ than redefining the whole function.
14 14
15@cindex piece of advice 15@cindex piece of advice
16 Each function can have multiple @dfn{pieces of advice}, separately 16 Each function can have multiple @dfn{pieces of advice}, separately
17defined. Each defined piece of advice can be enabled or disabled 17defined. Each defined piece of advice can be @dfn{enabled} or
18explicitly. The enabled pieces of advice for any given function 18disabled explicitly. All the enabled pieces of advice for any given
19actually take effect when you @dfn{activate} advice for that function, or when 19function actually take effect when you @dfn{activate} advice for that
20that function is subsequently defined or redefined. 20function, or when you define or redefine the function. Note that
21enabling a piece of advice and activating advice for a function
22are not the same thing.
21 23
22 @strong{Usage Note:} Advice is useful for altering the behavior of 24 @strong{Usage Note:} Advice is useful for altering the behavior of
23existing calls to an existing function. If you want the new behavior 25existing calls to an existing function. If you want the new behavior
@@ -191,7 +193,7 @@ function; this flag says to do so, for @var{function}, immediately after
191defining this piece of advice. 193defining this piece of advice.
192 194
193@cindex forward advice 195@cindex forward advice
194This flag has no effect if @var{function} itself is not defined yet (a 196This flag has no immediate effect if @var{function} itself is not defined yet (a
195situation known as @dfn{forward advice}), because it is impossible to 197situation known as @dfn{forward advice}), because it is impossible to
196activate an undefined function's advice. However, defining 198activate an undefined function's advice. However, defining
197@var{function} will automatically activate its advice. 199@var{function} will automatically activate its advice.