mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-01 09:51:22 -08:00
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.
This commit is contained in:
parent
b3e7d046c3
commit
62cf8f1649
2 changed files with 20 additions and 1 deletions
|
|
@ -224,7 +224,7 @@ The first arg in ARGLIST (the one that receives VAL) receives an expression
|
|||
which can do arbitrary things, whereas the other arguments are all guaranteed
|
||||
to be pure and copyable. Example use:
|
||||
(gv-define-setter aref (v a i) \\=`(aset ,a ,i ,v))"
|
||||
(declare (indent 2) (debug (&define name sexp def-body)))
|
||||
(declare (indent 2) (debug (&define name :name gv-setter sexp def-body)))
|
||||
`(gv-define-expander ,name
|
||||
(lambda (do &rest args)
|
||||
(declare-function
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue