unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Should require and provide be symmetrical?
@ 2010-02-10  1:29 Nathaniel Flath
  2010-02-10  2:44 ` chad
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Nathaniel Flath @ 2010-02-10  1:29 UTC (permalink / raw
  To: emacs-devel

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-02-10 19:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-10  1:29 Should require and provide be symmetrical? Nathaniel Flath
2010-02-10  2:44 ` chad
2010-02-10  2:48 ` Stephen J. Turnbull
2010-02-10 18:27 ` Andreas Schwab
2010-02-10 19:12   ` Harald Hanche-Olsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).