[Top][All Lists]

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

Re: Intercepting require statements

From: Nikolaj Schumacher
Subject: Re: Intercepting require statements
Date: Wed, 18 Mar 2009 14:25:32 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (darwin)

Nordlöw <address@hidden> wrote:

> Is there a way to somehow intercept require statements like is done in
> byte-code-cache.el in the following way:
> (setq load-source-file-function #'bcc-load-source-file)

Doesn't require use `load' internally?

(setq load-source-file-function 'ignore)
(require 'something-not-yet-compiled)

is enough to prevent loading.

I think the problem is that `load' doesn't look at
`load-source-file-function' if it finds a byte-compiled file.  So there's
no chance to automatically re-compile an outdated file.

I don't think there's a way around that.

see also:

Nikolaj Schumacher

reply via email to

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