[Top][All Lists]

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

Re: Requiring elisp that comes with Emacs

From: Eric Abrahamsen
Subject: Re: Requiring elisp that comes with Emacs
Date: Wed, 01 Feb 2017 07:53:58 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Narendra Joshi <> writes:

> Skip Montanaro <> writes:
>> On Mon, Jan 30, 2017 at 10:52 AM, Narendra Joshi <
>>> wrote:
>>     What happens when we do `require'?
>> It guarantees the relevant feature is available, generally as a side
>> effect of loading the named package. I believe the package much
>> "provide" its name. If not found, an error is raised. Full details
>> can be found here:
>> Named-Features.html
> My question was more about whether we need to `require` packages that
> come with Emacs itself, e.g. org-mode.

Practically speaking, every package that come with Emacs will provide
autoload statements for all the common entrypoint functions. Calling
`require' will instantly load all the package's code, and all the
packages it requires. Autoload, on the other hand, will leave the
package unloaded, but load it automatically the first time you use an
autoload'ed function. Most of the time, that's all you need.


reply via email to

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