emacs-devel
[Top][All Lists]
Advanced

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

Re: cl-eval-when -- A workaround for recursive require?


From: Jonas Bernoulli
Subject: Re: cl-eval-when -- A workaround for recursive require?
Date: Sun, 01 May 2022 20:36:15 +0200

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Zhu Zihao [2022-04-27 18:52:07] wrote:
>> A breif summary: magit.el use a `cl-eval-when` block with load time and
>> eval time only evaluation to require its sub-components, while each
>> sub-component use `(require 'magit)` to use procedure in different
>> sub-components. This hack seems to be a hack to avoid recursive require.
>
> This kind of setup is quite common, but the resulting cyclic
> dependencies tend to be a nightmare.

Yeah, I got a bit lazy there, but I am working on it now.

     Jonas



reply via email to

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