From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: About features Date: Wed, 06 Mar 2013 07:28:05 -0700 Message-ID: References: <51371587.7000104@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1362580070 16182 80.91.229.3 (6 Mar 2013 14:27:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Mar 2013 14:27:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 06 15:28:15 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UDFKG-0005HX-Hx for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Mar 2013 15:28:12 +0100 Original-Received: from localhost ([::1]:49012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDFJu-0007PI-T5 for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Mar 2013 09:27:50 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDFJf-0007Ox-3d for help-gnu-emacs@gnu.org; Wed, 06 Mar 2013 09:27:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDFJY-0004HA-HG for help-gnu-emacs@gnu.org; Wed, 06 Mar 2013 09:27:35 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:56173) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDFJX-0004Gp-UL for help-gnu-emacs@gnu.org; Wed, 06 Mar 2013 09:27:28 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UDFJo-0004wZ-Dw for help-gnu-emacs@gnu.org; Wed, 06 Mar 2013 15:27:44 +0100 Original-Received: from c-71-237-25-24.hsd1.co.comcast.net ([71.237.25.24]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Mar 2013 15:27:44 +0100 Original-Received: from kevin.d.rodgers by c-71-237-25-24.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Mar 2013 15:27:44 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-25-24.hsd1.co.comcast.net 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 In-Reply-To: <51371587.7000104@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89385 Archived-At: 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