aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/advice.el8
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8a2c30391ee..178dfe8f56d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,10 @@
12001-07-09 Gerd Moellmann <gerd@gnu.org> 12001-07-09 Gerd Moellmann <gerd@gnu.org>
2 2
3 * emacs-lisp/advice.el (ad-make-advised-definition): If the
4 original definition has an interactive form, but is Elp
5 instrumented, use the interactive form of the function called by
6 elp-wrapper.
7
3 * winner.el (winner-equal): Make it a defun. Don't compare Winner 8 * winner.el (winner-equal): Make it a defun. Don't compare Winner
4 configurations with compare-window-configuration; they aren't 9 configurations with compare-window-configuration; they aren't
5 window configurations. 10 window configurations.
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el
index 268fea55b0c..c13bff9e7cc 100644
--- a/lisp/emacs-lisp/advice.el
+++ b/lisp/emacs-lisp/advice.el
@@ -3068,11 +3068,15 @@ Example: `(ad-map-arglists '(a &rest args) '(w x y z))' will return
3068 (interactive-form 3068 (interactive-form
3069 (cond (orig-macro-p nil) 3069 (cond (orig-macro-p nil)
3070 (advised-interactive-form) 3070 (advised-interactive-form)
3071 ((ad-interactive-form origdef)) 3071 ((ad-interactive-form origdef)
3072 (if (and (symbolp function) (get function 'elp-info))
3073 (interactive-form (aref (get function 'elp-info) 2))
3074 (ad-interactive-form origdef)))
3072 ;; Otherwise we must have a subr: make it interactive if 3075 ;; Otherwise we must have a subr: make it interactive if
3073 ;; we have to and initialize required arguments in case 3076 ;; we have to and initialize required arguments in case
3074 ;; it is called interactively: 3077 ;; it is called interactively:
3075 (orig-interactive-p (interactive-form origdef)))) 3078 (orig-interactive-p
3079 (interactive-form origdef))))
3076 (orig-form 3080 (orig-form
3077 (cond ((or orig-special-form-p orig-macro-p) 3081 (cond ((or orig-special-form-p orig-macro-p)
3078 ;; Special forms and macros will be advised into macros. 3082 ;; Special forms and macros will be advised into macros.