[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#60974: 30.0.50; byte-compile-preprocess mutates self evaluating form
From: |
Stefan Monnier |
Subject: |
bug#60974: 30.0.50; byte-compile-preprocess mutates self evaluating forms in expanded macro bodies |
Date: |
Thu, 02 Feb 2023 11:04:35 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> Alternatively, we could define a macro, store its expanded form in a
> variable and run it through `cconv-closure-convert`, checking
> afterwards whether the original value changed or not. It feels a little
> more reliable, but writing it might be a little tricky.
I was thinking of doing something like:
(let ((f '(lambda () (interactive ...) ...)))
(should (equal f
(let ((fc (copy-tree f)))
(byte-compile fc)
fc))))
-- Stefan