From: "Aurélien Aptel" <aurelien.aptel+emacs@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: Circular dependencies between libraries - what to do?
Date: Mon, 6 Oct 2014 18:30:11 +0200 [thread overview]
Message-ID: <CA+5B0FMnU+CQNsGdehKCirXrjeXwajCqtgtAjhnxK1vh=M+SNw@mail.gmail.com> (raw)
In-Reply-To: <jwvk34l0w1t.fsf-monnier+gmane.emacs.help@gnu.org>
I was reading the `provide' source code in the context of my dynamic
loading branch [1] and it reminded me of this thread.
On Tue, Sep 30, 2014 at 9:05 PM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>> Interesting. Is this considered 'acceptable' coding style in the Emacs
>> world?
>
> It's discouraged, although it is used by some packages included in
> Emacs, IIRC.
The `provide' call is usually placed at the end of the file because
`provide' also evaluates loading hooks (`eval-after-load' code). If
you place it at the start of the file, loading hooks will potentially
use undefined functions/vars despite being in the file.
1: code https://github.com/aaptel/emacs-dynamic-module
issues/roadmap https://github.com/aaptel/emacs-dynamic-module/issues
next prev parent reply other threads:[~2014-10-06 16:30 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.9267.1411248102.1147.help-gnu-emacs@gnu.org>
2014-09-20 21:40 ` Circular dependencies between libraries - what to do? Emanuel Berg
2014-09-20 22:03 ` Thorsten Jolitz
[not found] ` <mailman.9277.1411257339.1147.help-gnu-emacs@gnu.org>
2014-09-30 14:25 ` Christoph Wedler
2014-09-30 14:38 ` Thorsten Jolitz
2014-09-30 19:05 ` Stefan Monnier
2014-10-06 16:30 ` Aurélien Aptel [this message]
[not found] ` <mailman.10067.1412088616.1147.help-gnu-emacs@gnu.org>
2014-09-30 21:28 ` Emanuel Berg
2014-09-20 21:21 Thorsten Jolitz
2014-09-20 22:49 ` Thorsten Jolitz
2014-09-20 22:52 ` Stefan Monnier
2014-09-21 0:04 ` Thorsten Jolitz
[not found] ` <mailman.9278.1411257340.1147.help-gnu-emacs@gnu.org>
2014-09-21 1:42 ` Emanuel Berg
2014-09-21 1:52 ` Drew Adams
2014-09-21 10:37 ` Thorsten Jolitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+5B0FMnU+CQNsGdehKCirXrjeXwajCqtgtAjhnxK1vh=M+SNw@mail.gmail.com' \
--to=aurelien.aptel+emacs@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.