help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Very basic questions.


From: jronald
Subject: Re: Very basic questions.
Date: Sun, 17 Sep 2006 02:13:51 +0800

Thanks for your patient help.
"Colin S. Miller" <no-spam-thank-you@csmiller.demon.co.uk> 
??????:450bf16c$0$75039$14726298@news.sunsite.dk...
> jronald wrote:
>> "Colin S. Miller" <no-spam-thank-you@csmiller.demon.co.uk> 
>> ??????: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?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]