unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* when to call provide, first or last?
@ 2012-02-27 12:47 Le Wang
  2012-02-27 12:59 ` Juanma Barranquero
  2012-02-27 13:35 ` Stefan Monnier
  0 siblings, 2 replies; 13+ messages in thread
From: Le Wang @ 2012-02-27 12:47 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 382 bytes --]

Hi,

What's the accepted idiom for calling (provide 'foo-feature)?  I picked up
the habit of calling it first in every library I write.  This way two
libraries can call functions from each other without causing a circular
dependency.

But I had a look through lisp/*.el and everything calls provide last.  Is
there some disadvantage to calling it first that I'm not seeing?

-- 
Le

[-- Attachment #2: Type: text/html, Size: 424 bytes --]

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

end of thread, other threads:[~2012-02-27 15:46 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-27 12:47 when to call provide, first or last? Le Wang
2012-02-27 12:59 ` Juanma Barranquero
2012-02-27 13:09   ` Le Wang
2012-02-27 13:25     ` Juanma Barranquero
2012-02-27 13:32       ` Le Wang
2012-02-27 13:44         ` Juanma Barranquero
2012-02-27 13:57           ` Le Wang
2012-02-27 14:05             ` Drew Adams
2012-02-27 13:35 ` Stefan Monnier
2012-02-27 13:42   ` Le Wang
2012-02-27 14:25     ` Stefan Monnier
2012-02-27 15:08     ` Harald Hanche-Olsen
2012-02-27 15:46       ` Le Wang

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).