diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/advice.el | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7674881dd7b..41252ee85a9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2012-11-16 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2012-11-16 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * emacs-lisp/advice.el (ad-make-advised-definition): Improve last fix. | ||
| 4 | |||
| 3 | * emacs-lisp/cl-lib.el: Set more meaningful version number. | 5 | * emacs-lisp/cl-lib.el: Set more meaningful version number. |
| 4 | 6 | ||
| 5 | 2012-11-16 Martin Rudalics <rudalics@gmx.at> | 7 | 2012-11-16 Martin Rudalics <rudalics@gmx.at> |
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el index 60c1a846a79..c2ebb3bbdc6 100644 --- a/lisp/emacs-lisp/advice.el +++ b/lisp/emacs-lisp/advice.el | |||
| @@ -2596,7 +2596,9 @@ in any of these classes." | |||
| 2596 | (ad-has-redefining-advice function)) | 2596 | (ad-has-redefining-advice function)) |
| 2597 | (let* ((origdef (ad-real-orig-definition function)) | 2597 | (let* ((origdef (ad-real-orig-definition function)) |
| 2598 | ;; Construct the individual pieces that we need for assembly: | 2598 | ;; Construct the individual pieces that we need for assembly: |
| 2599 | (orig-arglist (and origdef (ad-arglist origdef))) | 2599 | (orig-arglist (let ((args (ad-arglist origdef))) |
| 2600 | ;; The arglist may still be unknown. | ||
| 2601 | (if (listp args) args '(&rest args)))) | ||
| 2600 | (advised-arglist (or (ad-advised-arglist function) | 2602 | (advised-arglist (or (ad-advised-arglist function) |
| 2601 | orig-arglist)) | 2603 | orig-arglist)) |
| 2602 | (interactive-form (ad-advised-interactive-form function)) | 2604 | (interactive-form (ad-advised-interactive-form function)) |