summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>1999-10-30 20:26:22 +0000
committerGerd Moellmann <gerd@gnu.org>1999-10-30 20:26:22 +0000
commit17d28a2aa8dc3f5ed7a53d32c88701c500d597a7 (patch)
treeff86c1fc16330e18486338b18dc609c55d84d74b /lisp/emacs-lisp
parentdd24f431bebaf977d84fbb9c6e0fe69bde7ffbf0 (diff)
downloademacs-17d28a2aa8dc3f5ed7a53d32c88701c500d597a7.tar.gz
emacs-17d28a2aa8dc3f5ed7a53d32c88701c500d597a7.tar.bz2
emacs-17d28a2aa8dc3f5ed7a53d32c88701c500d597a7.zip
(ad-activate-on): Make it an alias for ad-activate.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/advice.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el
index 4a4a7f9e18c..cf6dbe3c7f3 100644
--- a/lisp/emacs-lisp/advice.el
+++ b/lisp/emacs-lisp/advice.el
@@ -3619,6 +3619,8 @@ definition will always be cached for later usage."
;; Here we are if we have all disabled advices:
(t (ad-deactivate function)))))))))
+(defalias 'ad-activate-on 'ad-activate)
+
(defun ad-deactivate (function)
"Deactivates the advice of an actively advised FUNCTION.
If FUNCTION has a proper original definition, then the current