diff options
| author | Stefan Monnier | 2005-10-24 16:14:34 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2005-10-24 16:14:34 +0000 |
| commit | 18880c272f3f1c2ebccae5319c7a53e95c8e6567 (patch) | |
| tree | 7141279b55f8ae279dfeb3f62009cc59c0410328 | |
| parent | 38729cfb2ab9de5e65cb9d705ac3148edc46da42 (diff) | |
| download | emacs-18880c272f3f1c2ebccae5319c7a53e95c8e6567.tar.gz emacs-18880c272f3f1c2ebccae5319c7a53e95c8e6567.zip | |
(ad-make-advised-definition): Fix arg-order.
(defadvice): Add `doc-string' declaration.
| -rw-r--r-- | lisp/emacs-lisp/advice.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el index ce727c30d14..dc285a717af 100644 --- a/lisp/emacs-lisp/advice.el +++ b/lisp/emacs-lisp/advice.el | |||
| @@ -3109,8 +3109,8 @@ in any of these classes." | |||
| 3109 | ;; in order to do proper prompting: | 3109 | ;; in order to do proper prompting: |
| 3110 | `(if (called-interactively-p) | 3110 | `(if (called-interactively-p) |
| 3111 | (call-interactively ',origname) | 3111 | (call-interactively ',origname) |
| 3112 | ,(ad-make-mapped-call orig-arglist | 3112 | ,(ad-make-mapped-call advised-arglist |
| 3113 | advised-arglist | 3113 | orig-arglist |
| 3114 | origname))) | 3114 | origname))) |
| 3115 | ;; And now for normal functions and non-interactive subrs | 3115 | ;; And now for normal functions and non-interactive subrs |
| 3116 | ;; (or subrs whose interactive behavior was advised): | 3116 | ;; (or subrs whose interactive behavior was advised): |
| @@ -3812,6 +3812,7 @@ documentation of the advised function can be dumped onto the `DOC' file | |||
| 3812 | during preloading. | 3812 | during preloading. |
| 3813 | 3813 | ||
| 3814 | See Info node `(elisp)Advising Functions' for comprehensive documentation." | 3814 | See Info node `(elisp)Advising Functions' for comprehensive documentation." |
| 3815 | (declare (doc-string 3)) | ||
| 3815 | (if (not (ad-name-p function)) | 3816 | (if (not (ad-name-p function)) |
| 3816 | (error "defadvice: Invalid function name: %s" function)) | 3817 | (error "defadvice: Invalid function name: %s" function)) |
| 3817 | (let* ((class (car args)) | 3818 | (let* ((class (car args)) |
| @@ -3986,5 +3987,5 @@ Use only in REAL emergencies." | |||
| 3986 | 3987 | ||
| 3987 | (provide 'advice) | 3988 | (provide 'advice) |
| 3988 | 3989 | ||
| 3989 | ;;; arch-tag: 29f8c9a1-8c88-471f-95d7-e28541c6b7c0 | 3990 | ;; arch-tag: 29f8c9a1-8c88-471f-95d7-e28541c6b7c0 |
| 3990 | ;;; advice.el ends here | 3991 | ;;; advice.el ends here |