Mercurial > emacs
comparison lispref/advice.texi @ 25223:e41ee9a517aa
*** empty log message ***
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 10 Aug 1999 16:52:16 +0000 |
parents | 40089afa2b1d |
children | 467b88fab665 |
comparison
equal
deleted
inserted
replaced
25222:1802f1bb3285 | 25223:e41ee9a517aa |
---|---|
265 | 265 |
266 If the around-advice does not use @code{ad-do-it}, then it does not run | 266 If the around-advice does not use @code{ad-do-it}, then it does not run |
267 the original function definition. This provides a way to override the | 267 the original function definition. This provides a way to override the |
268 original definition completely. (It also overrides lower-positioned | 268 original definition completely. (It also overrides lower-positioned |
269 pieces of around-advice). | 269 pieces of around-advice). |
270 | |
271 If the around-advice uses @code{ad-do-it} more than once, the original | |
272 definition is run at each place. In this way, around-advice can execute | |
273 the original definition (and lower-positioned pieces of around-advice) | |
274 several times. Another way to do that is by using @code{ad-do-it} | |
275 inside of a loop. | |
270 | 276 |
271 @node Computed Advice | 277 @node Computed Advice |
272 @section Computed Advice | 278 @section Computed Advice |
273 | 279 |
274 The macro @code{defadvice} resembles @code{defun} in that the code for | 280 The macro @code{defadvice} resembles @code{defun} in that the code for |