bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#21742: 25.0.50; Document that ert-deftest expands all macros


From: Lars Ingebrigtsen
Subject: bug#21742: 25.0.50; Document that ert-deftest expands all macros
Date: Sat, 12 Oct 2019 21:35:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

immerrr again <immerrr@gmail.com> writes:

> I started grepping and xref-ing through the code till I found that
> ert-deftest includes cl-macrolet which in turn runs macroexpand-all on
> the test definition.  Quite expectedly, it expands the define-arx macro
> that results in eval-and-compile which is also expanded and all that's
> left in the resulting test definition is a symbol.  More importantly,
> all side effects, i.e. function/macro definitions happen during test
> definition while they should really happen during test execution.

I've now added this to the doc string.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]