]> git.eshelyaron.com Git - emacs.git/commit
Ensure that getters and setters can be edebugged at the same time.
authorPhilipp Stephani <phst@google.com>
Sun, 14 Jun 2020 16:18:13 +0000 (18:18 +0200)
committerPhilipp Stephani <phst@google.com>
Sun, 14 Jun 2020 16:18:13 +0000 (18:18 +0200)
commit62cf8f1649468fc2f6c4f8926ab5c4bb184bfbe8
tree8d5f6bf7b9d21548712f3638ebe895a36424be54
parentb3e7d046c3a94556fcaf6f9ce72aa2ecb20262a6
Ensure that getters and setters can be edebugged at the same time.

It's necessary to add a name suffix to setters defined with
'gv-define-setter' so that Edebug can distinguish between the getter
and the setter (Bug#41853).

* lisp/emacs-lisp/gv.el (gv-define-setter): Add a name suffix to
setter definitions.

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