help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Circular dependencies between libraries - what to do?


From: Thorsten Jolitz
Subject: Re: Circular dependencies between libraries - what to do?
Date: Tue, 30 Sep 2014 16:38:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Christoph Wedler <christoph.wedler@sap.com> writes:

> Thorsten Jolitz <tjolitz@gmail.com> writes:
>
>> Emanuel Berg <embe8573@student.uu.se> writes:
>>
>>> Thorsten Jolitz <tjolitz@gmail.com> writes:
>>>
>>>> (1) how to use require without introducing circular
>>>> dependencies?
>>>
>>> At the top of a file, put the require:s, e.g.,
>>>
>>>     (require 'message)
>>>     (require 'moggle)
>>>
>>> Then at the end of the file, put
>>>
>>>     (provide 'message-my)
>
> You can put the `provide' also at the beginning of the file.
>
>   circ-a.el:
>     (provide 'circ-a)
>     (require 'circ-b)
>
>   circ-b.el:
>     (provide 'circ-b)
>     (require 'circ-a)
>
> works fine.

Interesting. Is this considered 'acceptable' coding style in the Emacs
world?

-- 
cheers,
Thorsten




reply via email to

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