From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "jronald" Newsgroups: gmane.emacs.help Subject: Re: Very basic questions. Date: Sun, 17 Sep 2006 02:13:51 +0800 Organization: Bentium Ltd. (CN99) Message-ID: References: <450bdfd3$0$75037$14726298@news.sunsite.dk> <450bf16c$0$75039$14726298@news.sunsite.dk> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1158432039 9509 80.91.229.2 (16 Sep 2006 18:40:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Sep 2006 18:40:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 16 20:40:39 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GOf5a-0007Ya-A4 for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Sep 2006 20:40:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GOf5Z-0003lu-Sj for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Sep 2006 14:40:29 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.cn99.com!news.yaako.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: 222.64.162.33 Original-X-Trace: news.yaako.com 1158430431 7141 222.64.162.33 (16 Sep 2006 18:13:51 GMT) Original-X-Complaints-To: usenet@news.yaako.com Original-NNTP-Posting-Date: Sat, 16 Sep 2006 18:13:51 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Original-Xref: shelby.stanford.edu gnu.emacs.help:141795 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37417 Archived-At: Thanks for your patient help. "Colin S. Miller" ??????:450bf16c$0$75039$14726298@news.sunsite.dk... > jronald wrote: >> "Colin S. Miller" >> ??????:450bdfd3$0$75037$14726298@news.sunsite.dk... >>>> In runtime, how does "require" know where the feature list is? There is >>>> only machine code then. >>>> >>> John, >>> >>> (require 'feature) >>> searches the paths listed in 'load-path', >>> this can be added to using (add-path). >>> It looks for a file called "feature.el" or "feature.elc". >>> >>> >> Do you mean that "provide" modifies the files, both .el and .elc? I just >> can't imagine. > John, > > (require 'feature) loads the package 'feature' into > Emacs's memory, it doesn't modify the source, > or pre-compiled package, it just reads them. > "require" will find check if the feature already there first, and "provide" will add a feature to the feature list. How do they find the feature list? Or how do they know the memory location where feature list is?