]> git.eshelyaron.com Git - emacs.git/commit
Make edebug-step-in work on generic methods (Bug#22294)
authorGemini Lasswell <gazally@runbox.com>
Sat, 13 May 2017 18:35:49 +0000 (11:35 -0700)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 14 May 2017 20:32:27 +0000 (23:32 +0300)
commite6f64df9c2b443d3385c2c25c29ccd5283d37e3f
tree487563d05e1133b4dc7147ed48b87c69e6fd4ff7
parent10037e4be2358597125a05db93f6fee551131d83
Make edebug-step-in work on generic methods (Bug#22294)

* lisp/emacs-lisp/edebug.el (edebug-match-cl-generic-method-args):
New function to implement the edebug-form-spec property of
the symbol cl-generic-method-args.
(edebug-instrument-function): If the function is a generic
function, find and instrument all of its methods. Return a list
instead of a single symbol.
(edebug-instrument-callee): Now returns a list. Update docstring.
(edebug-step-in): Handle the list returned by edebug-instrument-callee.
* lisp/emacs-lisp/cl-generic.el (cl-defmethod): Use name and
cl-generic-method-args in its Edebug spec.
* lisp/emacs-lisp/eieio-compat.el (defmethod): Use name and
cl-generic-method-args in its Edebug spec.
* lisp/subr.el (method-files): New function.
* test/lisp/subr-tests.el (subr-tests--method-files--finds-methods)
(subr-tests--method-files--nonexistent-methods): New tests.
lisp/emacs-lisp/cl-generic.el
lisp/emacs-lisp/edebug.el
lisp/emacs-lisp/eieio-compat.el
lisp/subr.el
test/lisp/subr-tests.el