]> git.eshelyaron.com Git - emacs.git/commit
Avoid duplicate Edebug symbols when backtracking (Bug#42701)
authorPhilipp Stephani <phst@google.com>
Mon, 3 Aug 2020 19:07:32 +0000 (21:07 +0200)
committerPhilipp Stephani <phst@google.com>
Mon, 3 Aug 2020 19:07:32 +0000 (21:07 +0200)
commitca419812d35f252fca2708ffdd132c223d094c0f
treeacd074b79efd322c408168a7be70df997f5c0ee7
parent16b7f413a9ff819c374e07ee927c1fd2b4138109
Avoid duplicate Edebug symbols when backtracking (Bug#42701)

When Edebug backtracks, it nevertheless generates definitions for the
non-matching branches, see Bug#41988 and Bug#42701.  This should be
fixed eventually (probably by deferring the definition until a branch
is known to match), but for now add a band-aid to avoid these
duplicate symbols, at least for anonymous forms.

* lisp/emacs-lisp/edebug.el (edebug-make-enter-wrapper): Regenerate
anonymous names.

* test/lisp/emacs-lisp/edebug-tests.el
(edebug-tests-duplicate-symbol-backtrack): New regression test.
lisp/emacs-lisp/edebug.el
test/lisp/emacs-lisp/edebug-tests.el