emacs-devel
[Top][All Lists]
Advanced

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

Re: eval-when-load?


From: Stephen Leake
Subject: Re: eval-when-load?
Date: Fri, 17 Jul 2015 05:07:17 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt)

Stefan Monnier <address@hidden> writes:

> But I suspect the problem you see is that the above form appears in
> a file which is not only byte-compiled but is also `require'd by other
> files in that package, so when *those* files are byte-compiled, the call
> to jde-jdhelper is indeed executed, since at that time this file is
> loaded (as part of byte-compiling those other files).

Yes, that's it.

> Maybe you want to use
>
>    (if t (require 'this-file))
>
> instead of (require 'this-file) so that this-file is only loaded when
> those-files are *loaded* rather than when they're byte-compiled.

This almost works; I still get errors, because jde-jdhelper is a macro,
and the variable itself is referenced, so I need this-file loaded at
compile-time. Sigh.

-- 
-- Stephe



reply via email to

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