GNU bug report logs - #21742
25.0.50; Document that ert-deftest expands all macros

Previous Next

Package: emacs;

Reported by: immerrr again <immerrr <at> gmail.com>

Date: Fri, 23 Oct 2015 08:57:01 UTC

Severity: minor

Tags: fixed

Found in version 25.0.50

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 21742 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: immerrr again <immerrr <at> gmail.com>
Cc: 21742 <at> debbugs.gnu.org
Subject: Re: bug#21742: 25.0.50; Document that ert-deftest expands all macros
Date: Sat, 12 Oct 2019 21:35:47 +0200
immerrr again <immerrr <at> 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




This bug report was last modified 5 years and 279 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.