From: Nathaniel Flath <flat0103@gmail.com>
To: emacs-devel@gnu.org
Subject: Should require and provide be symmetrical?
Date: Tue, 9 Feb 2010 20:29:07 -0500 [thread overview]
Message-ID: <5e3a506e1002091729u3d70ed8bt2350c57b5d480f14@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 743 bytes --]
I came across a problem with require and provide that seems rather
counterintuitive, although it is implicit in the documentaiton. If one file
provides a feature with (provide 'feature) and another requires it, there is
no guarantee that that specific file is loaded, even if no other file calls
(provide 'feature). I ran into this whil splitting up my personal
configuration - I was attempting to mirror the packages I was loading, so
for example org.el in my directory would contain customizations for
org-mode. However, in this file, a (require 'org) would cause an infinite
require error, as it tried to load itself instead of the org.el in emacs.
Should this behaviour be changed, or is there a reason for it?
Thanks,
Nathaniel Flath
[-- Attachment #2: Type: text/html, Size: 807 bytes --]
next reply other threads:[~2010-02-10 1:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-10 1:29 Nathaniel Flath [this message]
2010-02-10 2:44 ` Should require and provide be symmetrical? chad
2010-02-10 2:48 ` Stephen J. Turnbull
2010-02-10 18:27 ` Andreas Schwab
2010-02-10 19:12 ` Harald Hanche-Olsen
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=5e3a506e1002091729u3d70ed8bt2350c57b5d480f14@mail.gmail.com \
--to=flat0103@gmail.com \
--cc=emacs-devel@gnu.org \
/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.