* lisp/emacs-lisp/nadvice.el: Support adding a given function multiple times.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 10 May 2014 20:07:01 +0000 (16:07 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 10 May 2014 20:07:01 +0000 (16:07 -0400)
commit5d03fb436fcfb1fe704cc7a66dec7bd2d21d49f1
tree7884824b46c957bc5bfce46066e756d4ae4992db
parent4a5c71d7c275b93238c629601526a87eca08e6fd
* lisp/emacs-lisp/nadvice.el: Support adding a given function multiple times.
(advice--member-p): If name is given, only compare the name.
(advice--remove-function): Don't stop at the first match.
(advice--normalize-place): New function.
(add-function, remove-function): Use it.
(advice--add-function): Pass the name, if any, to
advice--remove-function.
doc/lispref/functions.texi
lisp/ChangeLog
lisp/emacs-lisp/nadvice.el
test/automated/advice-tests.el
test/indent/perl.perl
test/indent/ruby.rb