GNU bug report logs - #21423
24.5; (package-initialize) added to init.el without (setq package-enable-at-startup nil)

Previous Next

Package: emacs;

Reported by: Phil Sainty <psainty <at> orcon.net.nz>

Date: Sun, 6 Sep 2015 11:02:02 UTC

Severity: normal

Found in version 24.5

Done: Artur Malabarba <bruce.connor.am <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Phil Sainty <psainty <at> orcon.net.nz>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.5; (package-initialize) added to init.el without (setq
 package-enable-at-startup nil)
Date: Sun, 06 Sep 2015 23:01:08 +1200
[Message part 1 (text/plain, inline)]
package--ensure-init-file inserts (package-initialize) into the user's
init file, but it does not also insert (setq package-enable-at-startup nil),
which means that (according to (emacs) Package Installation) Emacs will
re-initialize the packages post-init:

> In some circumstances, you may want to load packages explicitly in
> your init file (usually because some other code in your init file
> depends on a package).  In that case, your init file should call the
> function ‘package-initialize’.  It is up to you to ensure that
> relevant user options, such as ‘package-load-list’ (see below), are
> set up prior to the ‘package-initialize’ call.  You should also set
> ‘package-enable-at-startup’ to ‘nil’, to avoid loading the packages
> again after processing the init file.


[0001-Disable-package-enable-at-startup-when-forcing-packa.patch (text/x-patch, attachment)]

This bug report was last modified 9 years and 256 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.