unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ergus <spacibba@aol.com>
To: emacs-devel@gnu.org
Cc: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Explicit call to package-initialize does not trigger a warn.
Date: Wed, 19 Jun 2019 01:48:06 +0200	[thread overview]
Message-ID: <20190618234804.pfone6l72w7uz7mk@Ergus> (raw)

Hi:

I have observed that doing an explicit call to package-initialize in the
init file is not triggering a warning as the documentation says it
should do in emacs 27.

The warning is showed (looking in packages.el) when package--initialize
is non-nil.

So I was checking the environment and package--initialize is nil at the end
of the startup if (package-initialize) is not explicitly in my init
file; but the packages are actually initialized.

Calling package-initialize (interactively or in the init file) properly
sets the variable. 

Maybe the issue is related with the fact that startup.el calls
(package-activate-all) instead of (package-initialize)

(and user-init-file
     package-enable-at-startup
     (...)
     (package-activate-all))

and (package-activate-all) doesn't touch the variable package--initialize.

Any idea?


On Tue, Jun 18, 2019 at 08:14:59AM -0400, Stefan Monnier wrote:
>> When it was originally introduced, I remember byte-compile-dynamic made
>> a significant difference when loading large modules from which one
>> initially used only a few functions, it enabled lazy-loading.
>
>That was the idea, yes.
>
>> Would that still matter in today's emacs, or have things moved along far
>> enough that it wont matter?
>
>My impression is that the gain is negligible on today's hardware (and
>I consider my 2007-era Thinkpad to be part of "today's hardware).
>
>Maybe I could be convinced otherwise by actual benchmarks, of course.
>
>
>        Stefan
>
>



             reply	other threads:[~2019-06-18 23:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-18 23:48 Ergus [this message]
2019-06-19 12:45 ` Explicit call to package-initialize does not trigger a warn Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190618234804.pfone6l72w7uz7mk@Ergus \
    --to=spacibba@aol.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).