Mercurial > emacs
changeset 80328:349f51baa515
(defadvice): Add usage pattern.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 13 Mar 2008 15:27:53 +0000 |
parents | 4cc6af526cc6 |
children | 1e134131412d |
files | lisp/emacs-lisp/advice.el |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/emacs-lisp/advice.el Thu Mar 13 02:59:51 2008 +0000 +++ b/lisp/emacs-lisp/advice.el Thu Mar 13 15:27:53 2008 +0000 @@ -3817,7 +3817,10 @@ documentation of the advised function can be dumped onto the `DOC' file during preloading. -See Info node `(elisp)Advising Functions' for comprehensive documentation." +See Info node `(elisp)Advising Functions' for comprehensive documentation. +usage: (defadvice FUNCTION (CLASS NAME [POSITION] [ARGLIST] FLAG...) + [DOCSTRING] [INTERACTIVE-FORM] + BODY...)" (declare (doc-string 3)) (if (not (ad-name-p function)) (error "defadvice: Invalid function name: %s" function))