mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 18:37:33 +00:00
(defadvice): Add usage pattern.
This commit is contained in:
parent
0b2a5e8f79
commit
7aefbb0613
2 changed files with 8 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
|||
2008-03-13 Richard Stallman <rms@gnu.org>
|
||||
|
||||
* emacs-lisp/advice.el (defadvice): Add usage pattern.
|
||||
|
||||
2008-03-11 Chong Yidong <cyd@stupidchicken.com>
|
||||
|
||||
* simple.el (set-mark-command): Doc fix.
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue