[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: testcover: setf-method and treatment of `defcustom'
From: |
Stefan Monnier |
Subject: |
Re: testcover: setf-method and treatment of `defcustom' |
Date: |
Tue, 18 Sep 2012 17:37:23 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
> My cent: Before pushing VAL. AFAICS `testcover-after' needs to see
> PLACE unmodified.
Then please try the patch below instead.
Stefan
=== modified file 'lisp/emacs-lisp/testcover.el'
--- lisp/emacs-lisp/testcover.el 2012-01-19 07:21:25 +0000
+++ lisp/emacs-lisp/testcover.el 2012-09-11 03:38:33 +0000
@@ -447,6 +447,13 @@
(defun testcover-after (idx val)
"Internal function for coverage testing. Returns VAL after installing it in
`testcover-vector' at offset IDX."
+ (declare (gv-expander (lambda (do)
+ (gv-letplace (getter setter) val
+ (funcall do getter
+ (lambda (store)
+ (macroexp-let2 nil s store
+ `(progn (testcover-after ,idx ,getter)
+ ,(funcall setter s)))))))))
(cond
((eq (aref testcover-vector idx) 'unknown)
(aset testcover-vector idx val))