GNU bug report logs - #52147
Eager macro-expansion is not performed in `eval-and-compile' functions

Previous Next

Package: emacs;

Reported by: Paul Pogonyshev <pogonyshev <at> gmail.com>

Date: Sat, 27 Nov 2021 19:38:01 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: 52147 <at> debbugs.gnu.org, Paul Pogonyshev <pogonyshev <at> gmail.com>, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: bug#52147: Eager macro-expansion is not performed in `eval-and-compile' functions
Date: Sat, 15 Jan 2022 14:10:32 +0100
Michael Heerdegen <michael_heerdegen <at> web.de> writes:

> Well we do, a bit,
>
>   (info "(elisp) How Programs Do Loading")
>
> says that loading a file performs eager macro expansion and that does
> speed up the resulting code.  `eval', `eval-when-compile' and
> `eval-and-compile' don't perform eager macro expansion.  I don't know to
> what degree this is on purpose.  But if a macro is defined later in the
> file or in another file that has not yet been loaded this may not be
> possible anyway.

It sounds to me like things are basically working as designed.

Perhaps Stefan has some comments; added to the CCs.

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




This bug report was last modified 3 years and 146 days ago.

Previous Next


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