diff options
| author | Richard M. Stallman | 2008-03-13 15:28:04 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2008-03-13 15:28:04 +0000 |
| commit | 7aefbb0613d601a127cd7a5f6131ee93fa70db83 (patch) | |
| tree | bf508bf66b18cafeb8aa8db33fb2e55de8b8326b | |
| parent | 0b2a5e8f794bd2d9660666135f0131708b9cec96 (diff) | |
| download | emacs-7aefbb0613d601a127cd7a5f6131ee93fa70db83.tar.gz emacs-7aefbb0613d601a127cd7a5f6131ee93fa70db83.zip | |
(defadvice): Add usage pattern.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/emacs-lisp/advice.el | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 788d1e866b3..c7925e1cd2d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-03-13 Richard Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/advice.el (defadvice): Add usage pattern. | ||
| 4 | |||
| 1 | 2008-03-11 Chong Yidong <cyd@stupidchicken.com> | 5 | 2008-03-11 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 6 | ||
| 3 | * simple.el (set-mark-command): Doc fix. | 7 | * simple.el (set-mark-command): Doc fix. |
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el index a9e2b58f0dc..4babd844cf9 100644 --- a/lisp/emacs-lisp/advice.el +++ b/lisp/emacs-lisp/advice.el | |||
| @@ -3817,7 +3817,10 @@ the advised function. `freeze' implies `activate' and `preactivate'. The | |||
| 3817 | documentation of the advised function can be dumped onto the `DOC' file | 3817 | documentation of the advised function can be dumped onto the `DOC' file |
| 3818 | during preloading. | 3818 | during preloading. |
| 3819 | 3819 | ||
| 3820 | See Info node `(elisp)Advising Functions' for comprehensive documentation." | 3820 | See Info node `(elisp)Advising Functions' for comprehensive documentation. |
| 3821 | usage: (defadvice FUNCTION (CLASS NAME [POSITION] [ARGLIST] FLAG...) | ||
| 3822 | [DOCSTRING] [INTERACTIVE-FORM] | ||
| 3823 | BODY...)" | ||
| 3821 | (declare (doc-string 3)) | 3824 | (declare (doc-string 3)) |
| 3822 | (if (not (ad-name-p function)) | 3825 | (if (not (ad-name-p function)) |
| 3823 | (error "defadvice: Invalid function name: %s" function)) | 3826 | (error "defadvice: Invalid function name: %s" function)) |