summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/advice.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2008-03-13 15:28:04 +0000
committerRichard M. Stallman <rms@gnu.org>2008-03-13 15:28:04 +0000
commit7aefbb0613d601a127cd7a5f6131ee93fa70db83 (patch)
treebf508bf66b18cafeb8aa8db33fb2e55de8b8326b /lisp/emacs-lisp/advice.el
parent0b2a5e8f794bd2d9660666135f0131708b9cec96 (diff)
downloademacs-7aefbb0613d601a127cd7a5f6131ee93fa70db83.tar.gz
emacs-7aefbb0613d601a127cd7a5f6131ee93fa70db83.tar.bz2
emacs-7aefbb0613d601a127cd7a5f6131ee93fa70db83.zip
(defadvice): Add usage pattern.
Diffstat (limited to 'lisp/emacs-lisp/advice.el')
-rw-r--r--lisp/emacs-lisp/advice.el5
1 files changed, 4 insertions, 1 deletions
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
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))