Preserve arg names for advice of subr and lexical functions.
commitc2bd2ab02856f36d41c88f5e054f4444a6366d5e
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 13 Apr 2011 17:56:47 +0000 (13 14:56 -0300)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 13 Apr 2011 17:56:47 +0000 (13 14:56 -0300)
treef4b359472e89a3b2012f88f2c860a295652e8bcf
parentc0ece6a5c4c8dc87be1da6808289c88de19d8398
Preserve arg names for advice of subr and lexical functions.
* lisp/help-fns.el (help-function-arglist): Consolidate the subr and
new-byte-code cases.  Add argument `preserve-names' to extract names
from the docstring when needed.
* lisp/emacs-lisp/advice.el (ad-define-subr-args, ad-undefine-subr-args)
(ad-subr-args-defined-p, ad-get-subr-args, ad-subr-arglist): Remove.
(ad-arglist): Use help-function-arglist's new arg.
(ad-definition-type): Use cond.

Fixes: debbugs:8457
lisp/ChangeLog
lisp/emacs-lisp/advice.el
lisp/help-fns.el