aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Monnier2013-01-07 13:03:01 -0500
committerStefan Monnier2013-01-07 13:03:01 -0500
commit4986fa2175ea41a0ddb051d464293266b3bd7433 (patch)
tree479c51f955a011b6aa023c010f73f25f1ecdfec5 /test
parent3bee311e97e8512ee209853792cc8f4fd5bd0fd5 (diff)
downloademacs-4986fa2175ea41a0ddb051d464293266b3bd7433.tar.gz
emacs-4986fa2175ea41a0ddb051d464293266b3bd7433.zip
* lisp/emacs-lisp/advice.el (ad-activate-advised-definition): Refresh the
advice list when the interactive-spec of ad-Advice-* changes.
Diffstat (limited to 'test')
-rw-r--r--test/automated/advice-tests.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/automated/advice-tests.el b/test/automated/advice-tests.el
index bc9135c92d0..238561bef84 100644
--- a/test/automated/advice-tests.el
+++ b/test/automated/advice-tests.el
@@ -107,6 +107,12 @@
107 (lambda (f &rest args) 107 (lambda (f &rest args)
108 (cons (cons 2 (called-interactively-p)) (apply f args)))) 108 (cons (cons 2 (called-interactively-p)) (apply f args))))
109 (should (equal (call-interactively 'sm-test7) '((2 . t) (1 . t) 11))) 109 (should (equal (call-interactively 'sm-test7) '((2 . t) (1 . t) 11)))
110
111 ;; Check handling of interactive spec.
112 (defun sm-test8 (a) (interactive "p") a)
113 (defadvice sm-test8 (before adv1 activate) nil)
114 (defadvice sm-test8 (before adv2 activate) (interactive "P") nil)
115 (should (equal (interactive-form 'sm-test8) '(interactive "P")))
110 )) 116 ))
111 117
112;; Local Variables: 118;; Local Variables: