* lisp/emacs-lisp/nadvice.el: Support adding a given function multiple times.
commit4e432be0507f066e7f36ffbce155cbc1ffff630e
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 10 May 2014 20:07:01 +0000 (10 16:07 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 10 May 2014 20:07:01 +0000 (10 16:07 -0400)
treef37889d2717eb44b4b10967fc3abab4e23622a94
parent8a55ab902f16e3d27fb75fdbbcba765614d0e300
* 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