[Top][All Lists]

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

Re: Treatise on require

From: Andreas Schwab
Subject: Re: Treatise on require
Date: Sun, 08 Jan 2006 12:45:24 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)

Bill Wohler <address@hidden> writes:

> Over time, nasty circular dependencies have reared their ugly head in
> MH-E. For example, mh-e requires just about other file and just about
> every other file requires mh-e. Just for fun there are mini-loops with
> mh-customize and and mh-utils. This is currently handled by putting the
> call to provides (in mh-e.el) before the various calls to require (whose
> files require mh-e).

IMHO in the long run it would be better to reorganize the files to remove
the circular dependencies.  For example the interdependency between
mh-customize and mh-utils appears to be gratuitous judging just from the
file names.  Maybe the common functions should be factored out to
different/new file.

Btw, looking at mh-utils.el, I don't think it should use `load' for
optional dependencies.  The libraries may already be loaded and should not
be reloaded just by loading mh-utils.  For example, tool-bar is already
preloaded in most configurations.


Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

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