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

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

bug#52147: Eager macro-expansion is not performed in `eval-and-compile'


From: Michael Heerdegen
Subject: bug#52147: Eager macro-expansion is not performed in `eval-and-compile' functions
Date: Sun, 28 Nov 2021 11:30:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Hello Paul,

> (eval-and-compile
>   (defun my-func-eac (what)
>     (my-macro what)))
>
> (defun my-func-normal (what)
>   (my-macro what))
>
> (print (symbol-function 'my-func-eac))
> (print (symbol-function 'my-func-normal))
>
> `eval-and-compile' is advertised in Elisp manual to make
> byte-compilation of certain macros without prior loading
> possible. Looks strange that at the same time it can worsen
> performance of non-byte-compiled code.

Is the issue you want to draw attention to that an interpreted
`eval-and-compile' form doesn't macroexpand its body?

Michael.





reply via email to

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