all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#24643: 25.1; Don't call package--ensure-init-file if initialized during startup
@ 2016-10-08 17:19 Alex
  0 siblings, 0 replies; only message in thread
From: Alex @ 2016-10-08 17:19 UTC (permalink / raw)
  To: 24643

'package-initialize' contains this if expression:

#+BEGIN_SRC elisp
  (if (equal user-init-file load-file-name)
      ;; If `package-initialize' is being called as part of loading
      ;; the init file, it's obvious we don't need to ensure-init.
      (setq package--init-file-ensured t
            ;; And likely we don't need to run it again after init.
            package-enable-at-startup nil)
    (package--ensure-init-file))
#+END_SRC

This calls 'package--ensure-init-file' even when a user may call
'package-initialize' in *one* of their init files, but not
'user-init-file'.

I think the condition should be replaced with:

#+BEGIN_SRC elisp
(not after-init-time)
#+END_SRC

Then it won't ensure when the user has initialized their packages
somewhere else.





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-10-08 17:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-08 17:19 bug#24643: 25.1; Don't call package--ensure-init-file if initialized during startup Alex

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.