diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2019-11-06 01:19:23 +0100 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2019-11-06 01:19:23 +0100 |
commit | 0661a39d1b501a41e439df8c73f7b7f3bf3e3761 (patch) | |
tree | 7fad886c94778a03998fb109e6868173032e2980 /doc/lispref/package.texi | |
parent | 0c293f1520dd73203c03d7934ac21b2bae6eaf37 (diff) | |
download | emacs-0661a39d1b501a41e439df8c73f7b7f3bf3e3761.tar.gz emacs-0661a39d1b501a41e439df8c73f7b7f3bf3e3761.tar.bz2 emacs-0661a39d1b501a41e439df8c73f7b7f3bf3e3761.zip |
Avoid changing value of defcustom package-enable-at-startup
* lisp/emacs-lisp/package.el (package--activated): New variable to
avoid changing value of defcustom 'package-enable-at-startup'.
(package-initialize): Don't set 'package-enable-at-startup'.
(package-initialize, package-activate-all): Set 'package--activated'
instead of 'package-enable-at-startup'.
(package--initialized): Add doc string.
* lisp/startup.el (command-line): Check if 'package--activated' is
non-nil before activating packages.
* doc/lispref/package.texi (Packaging Basics): Update docs.
Diffstat (limited to 'doc/lispref/package.texi')
-rw-r--r-- | doc/lispref/package.texi | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/doc/lispref/package.texi b/doc/lispref/package.texi index 57f4cbc5db3..236855bdf86 100644 --- a/doc/lispref/package.texi +++ b/doc/lispref/package.texi @@ -117,10 +117,7 @@ init file. This function makes the packages available to the current session. The user option @code{package-load-list} specifies which packages to make available; by default, all installed packages are made available. -If called during startup, this function also sets -@code{package-enable-at-startup} to @code{nil}, to avoid accidentally -evaluating package autoloads more than once. @xref{Package -Installation,,, emacs, The GNU Emacs Manual}. +@xref{Package Installation,,, emacs, The GNU Emacs Manual}. In most cases, you should not need to call @code{package-activate-all}, as this is done automatically during startup. Simply make sure to put |