From: Stephen Leake <stephen_leake@stephe-leake.org>
To: emacs-devel@gnu.org
Subject: Re: eval-when-load?
Date: Fri, 17 Jul 2015 05:07:17 -0500 [thread overview]
Message-ID: <86a8uvgkru.fsf@stephe-leake.org> (raw)
In-Reply-To: <jwvzj2vr9ra.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Thu, 16 Jul 2015 19:03:28 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> 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
next prev parent reply other threads:[~2015-07-17 10:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-16 16:33 eval-when-load? Stephen Leake
2015-07-16 18:13 ` eval-when-load? Artur Malabarba
2015-07-16 22:04 ` eval-when-load? Stephen Leake
2015-07-16 22:13 ` eval-when-load? Philipp Stephani
2015-07-16 23:03 ` eval-when-load? Stefan Monnier
2015-07-17 10:07 ` Stephen Leake [this message]
2015-08-06 22:50 ` eval-when-load? Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86a8uvgkru.fsf@stephe-leake.org \
--to=stephen_leake@stephe-leake.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.