]> git.eshelyaron.com Git - emacs.git/commit
Avoid changing value of defcustom package-enable-at-startup
authorStefan Kangas <stefankangas@gmail.com>
Wed, 6 Nov 2019 00:19:23 +0000 (01:19 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Wed, 6 Nov 2019 00:19:23 +0000 (01:19 +0100)
commit0661a39d1b501a41e439df8c73f7b7f3bf3e3761
tree7fad886c94778a03998fb109e6868173032e2980
parent0c293f1520dd73203c03d7934ac21b2bae6eaf37
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.
doc/lispref/package.texi
lisp/emacs-lisp/package.el
lisp/startup.el