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: Christoph Wedler
Subject: Re: Circular dependencies between libraries - what to do?
Date: Tue, 30 Sep 2014 16:25:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt)

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.

- Christoph


reply via email to

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