[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eval-when-compile
From: |
Pascal J. Bourguignon |
Subject: |
Re: eval-when-compile |
Date: |
Fri, 27 Jul 2012 10:11:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) |
PJ Weisberg <address@hidden> writes:
> On Thu, Jul 26, 2012 at 11:26 PM, Pascal J. Bourguignon
> <address@hidden> wrote:
>> If you try to load the .el file directly, then the macro is not defined,
>> and you're trying to call a function named (ewc-macro) which will fail.
>
> That's incorrect. Things inside the eval-when-compile get evaluated
> when the .el file is loaded, but not when the .elc file is loaded.
> It's *not* the equivalent of Common Lisp's (eval-when (compile)
> body...)
You're right, I misread C-h f eval-when-compile.
Hence the importance of reading well the documentation!
--
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.