]> git.eshelyaron.com Git - emacs.git/commit
Fix Edebug spec for cl-macrolet (bug#29919)
authorGemini Lasswell <gazally@runbox.com>
Sat, 21 Jul 2018 04:54:00 +0000 (21:54 -0700)
committerGemini Lasswell <gazally@runbox.com>
Wed, 1 Aug 2018 20:59:49 +0000 (13:59 -0700)
commitdf7371b84e9cfbb6e62c3196c2bc588eb934b835
tree9321571f27ac46fc4a45856fa4564c6bccc36bac
parent22d463ed5ca262e1d8893b115c3f1237485fc7e0
Fix Edebug spec for cl-macrolet (bug#29919)

Add an Edebug matching function for cl-macrolet which keeps track of
its bindings and treats them as macros without Edebug specs when found
in the body of the expression.
* lisp/emacs-lisp/edebug.el (edebug--cl-macrolet-defs): New variable.
(edebug-list-form-args): Use it.
(edebug--current-cl-macrolet-defs): New variable.
(edebug-match-cl-macrolet-expr, edebug-match-cl-macrolet-name)
(edebug-match-cl-macrolet-body): New functions.
* lisp/emacs-lisp/cl-macs.el (cl-macrolet): Use cl-macrolet-expr
for Edebug spec.
* test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-cl-macrolet):
New test.
* test/lisp/emacs-lisp/edebug-resources/edebug-test-code.el
(edebug-test-code-use-cl-macrolet): New function.
lisp/emacs-lisp/cl-macs.el
lisp/emacs-lisp/edebug.el
test/lisp/emacs-lisp/edebug-resources/edebug-test-code.el
test/lisp/emacs-lisp/edebug-tests.el