|
From: | Kevin Rodgers |
Subject: | Re: About features |
Date: | Wed, 06 Mar 2013 07:28:05 -0700 |
User-agent: | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 |
On 3/6/13 3:08 AM, Xue Fuqiao wrote:
In (info "(elisp) Coding Conventions"): * Put a call to `provide' at the end of each separate Lisp file. *Note Named Features::. * If a file requires certain other Lisp programs to be loaded beforehand, then the comments at the beginning of the file should say so. Also, use `require' to make sure they are loaded. *Note Named Features::. Why should we use `provide' and `require'? Is `load'/`load-library'/`load-file' enough? Thanks.
`provide' allows you to `require' unconditionally, but the library/file will only be loaded if necessary.
-- Kevin Rodgers Denver, Colorado, USA
[Prev in Thread] | Current Thread | [Next in Thread] |