]> git.eshelyaron.com Git - emacs.git/commit
Band-aid for edebugging generator bodies (Bug#40434).
authorPhilipp Stephani <phst@google.com>
Wed, 10 Jun 2020 17:01:03 +0000 (19:01 +0200)
committerPhilipp Stephani <phst@google.com>
Sun, 14 Jun 2020 18:01:28 +0000 (20:01 +0200)
commite96f78fca672c74b7bf1120b7683a50295418725
treeaded2f5b0e00ca786bbd70093fce422a229ecfd4
parent62cf8f1649468fc2f6c4f8926ab5c4bb184bfbe8
Band-aid for edebugging generator bodies (Bug#40434).

Edebug doesn't support them well.  Rather than trying to fix Edebug,
disable instrumentation for now to prevent annoying bugs.

* lisp/emacs-lisp/generator.el (iter-defun, iter-lambda, iter-make)
(iter-do): Don't attempt to instrument bodies that are mangled by the
CPS transformer.

* test/lisp/emacs-lisp/generator-tests.el
(generator-tests-edebug): New regression test.
lisp/emacs-lisp/generator.el
test/lisp/emacs-lisp/generator-tests.el