diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/functions.texi | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 0a8a0a88cce..6706f936c5e 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-11-18 Leo Liu <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * functions.texi (Advising Named Functions): Document | ||
| 4 | define-advice. | ||
| 5 | |||
| 1 | 2014-11-17 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2014-11-17 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | Improve time stamp handling, and be more consistent about it. | 8 | Improve time stamp handling, and be more consistent about it. |
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi index 023175e3632..50849d4228c 100644 --- a/doc/lispref/functions.texi +++ b/doc/lispref/functions.texi | |||
| @@ -1360,6 +1360,13 @@ called directly from C, and such calls ignore advice; hence, one ends | |||
| 1360 | up in a confusing situation where some calls (occurring from Lisp | 1360 | up in a confusing situation where some calls (occurring from Lisp |
| 1361 | code) obey the advice and other calls (from C code) do not. | 1361 | code) obey the advice and other calls (from C code) do not. |
| 1362 | 1362 | ||
| 1363 | @defmac define-advice symbol (where lambda-list &optional name depth) &rest body | ||
| 1364 | This macro defines an advice and adds it to the function named | ||
| 1365 | @var{symbol}. The advice is an anonymous function if @var{name} is | ||
| 1366 | nil or a function named @code{symbol@@name}. See @code{advice-add} | ||
| 1367 | for explanation of other arguments. | ||
| 1368 | @end defmac | ||
| 1369 | |||
| 1363 | @defun advice-add symbol where function &optional props | 1370 | @defun advice-add symbol where function &optional props |
| 1364 | Add the advice @var{function} to the named function @var{symbol}. | 1371 | Add the advice @var{function} to the named function @var{symbol}. |
| 1365 | @var{where} and @var{props} have the same meaning as for @code{add-function} | 1372 | @var{where} and @var{props} have the same meaning as for @code{add-function} |