]> git.eshelyaron.com Git - emacs.git/commit
Edebug: Make it possible to debug `gv-expander`s in `declare`
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 13 Feb 2021 03:53:38 +0000 (22:53 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 13 Feb 2021 03:53:38 +0000 (22:53 -0500)
commitca0842347e5437bcaeeded4a7fd55e0e48ed4bad
tree7d9719864ae41a9a6f31e53ac4dfd8fa2a7e1416
parent626911b704b3f144e9b8dbd187c394ed90e8411c
Edebug: Make it possible to debug `gv-expander`s in `declare`

Arrange for declarations to be able to specify their own specs via
the `edebug-declaration-spec` property.

* lisp/emacs-lisp/edebug.el: (edebug--get-declare-spec): New function.
(def-declarations): New spec element.
(defun, defmacro): Use it in their spec.

* lisp/emacs-lisp/gv.el (gv-expander, gv-setter):
Set `edebug-declaration-spec`.

* test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-gv-expander): New test.

* test/lisp/emacs-lisp/edebug-resources/edebug-test-code.el
(edebug-test-code-use-gv-expander): New test case.
lisp/emacs-lisp/edebug.el
lisp/emacs-lisp/gv.el
test/lisp/emacs-lisp/edebug-resources/edebug-test-code.el
test/lisp/emacs-lisp/edebug-tests.el