From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christoph Wedler Newsgroups: gmane.emacs.help Subject: Re: Circular dependencies between libraries - what to do? Date: Tue, 30 Sep 2014 16:25:03 +0200 Organization: SAP AG Message-ID: References: <87mw9ukm2b.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412087436 24685 80.91.229.3 (30 Sep 2014 14:30:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Sep 2014 14:30:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 30 16:30:29 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XYyRc-0007dI-46 for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Sep 2014 16:30:24 +0200 Original-Received: from localhost ([::1]:43699 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYyRb-0003TI-NP for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Sep 2014 10:30:23 -0400 Original-Path: usenet.stanford.edu!newsfeed.news.ucla.edu!news.snarked.org!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!weretis.net!feeder4.news.weretis.net!news1.dtag.de!news.sap-ag.de!news1!news.sap-ag.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: nKU7bvDXFB5LzogK6rDeaQ.news.sap-ag.de Original-X-Trace: news.sap-ag.de 1412087103 15662 nKU7bvDXFB5LzogK6rDeaQ.news.sap-ag.de (30 Sep 2014 14:25:03 GMT) Original-X-Complaints-To: newsmaster@sap.com Original-NNTP-Posting-Date: Tue, 30 Sep 2014 14:25:03 +0000 (UTC) Cancel-Lock: sha1:71yAY+pIyOEcxp1JuOFHXECYImI= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) Original-Xref: usenet.stanford.edu gnu.emacs.help:207906 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100181 Archived-At: Thorsten Jolitz writes: > Emanuel Berg writes: > >> Thorsten Jolitz 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