diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-09-06 13:52:54 +0100 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-09-07 11:22:30 +0100 |
commit | 066b26d6c47d1384d5ed3ce09c6379a9df350256 (patch) | |
tree | 838c91df120a3238f0cebcc5740a3ed18bbc3068 /doc/emacs/package.texi | |
parent | 1a0b4791061aafac84e24946f8af48b423344021 (diff) | |
download | emacs-066b26d6c47d1384d5ed3ce09c6379a9df350256.tar.gz |
* lisp/emacs-lisp/package.el (package-initialize): Set enable-at-startup
When `package-initialize' is called as part of loading the init file,
the user probably doesn't want it to be called again afterwards. In this
situation, `package-initialize' now sets `package-enable-at-startup' to
nil to prevent that. The user can have the old behaviour by setting this
variable to t after the call to `package-initialize'. (Bug#21423)
* doc/emacs/package.texi (Package Installation): Document it
* doc/lispref/package.texi (Packaging Basics): Document it
* etc/NEWS: Document it
Diffstat (limited to 'doc/emacs/package.texi')
-rw-r--r-- | doc/emacs/package.texi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/emacs/package.texi b/doc/emacs/package.texi index 68913d8b6fd..19d861a8395 100644 --- a/doc/emacs/package.texi +++ b/doc/emacs/package.texi @@ -232,7 +232,7 @@ in your init file depends on a package). In that case, your init file should call the function @code{package-initialize}. It is up to you to ensure that relevant user options, such as @code{package-load-list} (see below), are set up prior to the @code{package-initialize} call. -You should also set @code{package-enable-at-startup} to @code{nil}, to +This will automatically set @code{package-enable-at-startup} to @code{nil}, to avoid loading the packages again after processing the init file. Alternatively, you may choose to completely inhibit package loading at startup, and invoke the command @kbd{M-x package-initialize} to load |