all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Colin S. Miller" <no-spam-thank-you@csmiller.demon.co.uk>
Subject: Re: Very basic questions.
Date: Sat, 16 Sep 2006 13:43:01 +0100	[thread overview]
Message-ID: <450bf16c$0$75039$14726298@news.sunsite.dk> (raw)
In-Reply-To: <eegouu$i0j$1@news.yaako.com>

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.

(provide 'feature),
which is at the end of 'feature.el', confirms that the
package "feature" has been loaded; this makes a subsequent
(require 'feature) a no-operation command.

A feature is normally provided by a source file
of the same name as the feature, but can
be provided by a different file, by using
(require 'feature "feature-mode")
In this cause "feature-mode.el" or "feature-mode.elc"
will be loaded, they should have a
(provide 'feature) at the end.


To compile a source package into its .elc,
run (byte-compile-file) on it. This
is done when Emacs is compiled from its sources,
and unless you are writing your own packages,
you shouldn't need to use it.

HTH,
Colin S. Miller

  reply	other threads:[~2006-09-16 12:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-15 19:07 Very basic questions jronald
2006-09-16  3:40 ` John Sullivan
     [not found] ` <mailman.7000.1158379340.9609.help-gnu-emacs@gnu.org>
2006-09-16 11:18   ` jronald
2006-09-16 11:28     ` Colin S. Miller
2006-09-16 11:59       ` jronald
2006-09-16 12:43         ` Colin S. Miller [this message]
2006-09-16 18:13           ` jronald
2006-09-16 18:42             ` Colin S. Miller
2006-09-18  5:42         ` Tim X
  -- strict thread matches above, loose matches on Subject: below --
2006-09-15 20:22 Jay Bingham
     [not found] <mailman.6992.1158351893.9609.help-gnu-emacs@gnu.org>
2006-09-15 20:48 ` jronald
2006-09-15 20:50 ` jronald

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='450bf16c$0$75039$14726298@news.sunsite.dk' \
    --to=no-spam-thank-you@csmiller.demon.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.