From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Explicit call to package-initialize does not trigger a warn. Date: Wed, 19 Jun 2019 01:48:06 +0200 Message-ID: <20190618234804.pfone6l72w7uz7mk@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="141056"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: NeoMutt/20180716 Cc: Stefan Monnier To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 19 01:48:25 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hdNpx-000ace-1l for ged-emacs-devel@m.gmane.org; Wed, 19 Jun 2019 01:48:25 +0200 Original-Received: from localhost ([::1]:34144 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdNpw-0000Ao-0h for ged-emacs-devel@m.gmane.org; Tue, 18 Jun 2019 19:48:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38214) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdNpq-0000AS-TP for emacs-devel@gnu.org; Tue, 18 Jun 2019 19:48:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hdNpp-0000ha-VE for emacs-devel@gnu.org; Tue, 18 Jun 2019 19:48:18 -0400 Original-Received: from sonic309-25.consmr.mail.ir2.yahoo.com ([77.238.179.83]:44219) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hdNpp-0000eX-Ng for emacs-devel@gnu.org; Tue, 18 Jun 2019 19:48:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1560901694; bh=4QnVjd/VQO3cBIiT71kcpoFWHq/LbP5Fe9QKWLZAN6I=; h=Date:From:To:Cc:Subject:From:Subject; b=nOHVJ47QyLFBFtFxD/VCWqF52y5cR2NOxk3K2PtWPjQCyrV1c+PvLtG2J0bD/3fobRm1GL9clX5Ym4jMhEM4HgQYZQZel2/95FKR8koJhb/vDLvfGnFem7V6S38KzMxInXJFVOmAFUGZ0q1rMVrlipMmFrGApAAwm1h+iXh8i2JU0KHvjOCgDnsyNWwLcC6iMXJ11/a2JE/m4tPEjdQzIQOt1FTy1t4SOXJ8n8LmPLwbXB6LCw0utbzD+lcKRc7sq2wSsRzfsqX7To8SZgLHgv3knyvHZ5S7QHR8C7nGo9K6dw9SgLCeQ3CBUUY45j8J+88mMrqmBYIgTsWexuhCLg== X-YMail-OSG: DkM1F10VM1m7fyZ0Jg0qCy4Ff3IIB30ExKjTFhqqPzwofXS56T9IoJ11RBNwMaB OAxc3SoXCBFJn3491ZNdsxg23S8deE8UG9CbjkFxWYThDjcW3vohMXif_nyCMilUlvRHC_8ILYqv xw2PTgurv8mQcELjdsjgGlAqgLVruyLlZ6zMmvlKA.L_0w.yH7IAlKPFkEN_rVuouUwFAgm6tdc. adQOSxxjQvp.dgn8ibgSEtbaPm3nsxloAQswo3UK8qVW.U6SjS6NVQegFfDb9EDKW1LZsxmhvz92 Odk72aLoGuB1F9vz7UskcJsRbHrvjrn07jmkNJB_HM1XWSx3qUOmv3LCeTIULewAEn6NGcimIMsG 58VaBj3ToiienAJ0S4y08c_oqZjZZQk1gdjpKz1oi9yTntE.K36IoH.XZa0LHDSvFk5MhgVfSTWc aW4CGcQ3RlBYcay9RpmpH3w_635bxWeHPQvmZRsZpvh9tkZXoVryhvD6JLED1PHD4JTx53zvcnTu YNkbBeROACDmvyOJoUETVVoY5sjLErir5L7Tq4GK_6upE0uAoRpOZVJ_9VjkMt9QbKOsPmFrLcWj WhHvrrWsHPADvRoMsEQFlRc2dU9P1x2z1MXR3QoRcBxsjT6jiyDN9PJA13_bjGuirNstaJl7WFje nx3KO7K3Hqsp_DUV8DEkJ4pzCPgacWR_KmDHvGVwmgdCLsfiOiHVWDa6XEHQVYuXefDSuecmDZsn 5t18Ewe95PfDDMPsixozzQN3z9j1nOiAm187BBsOUI3ejeBBQYwFDdA9szdJJdoSPFXelv6LPeGz XFWVlln90GhL8SdVDIhofX4raBnKsiBNr2BTtW2E.m Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ir2.yahoo.com with HTTP; Tue, 18 Jun 2019 23:48:14 +0000 Original-Received: from 2.152.205.184.dyn.user.ono.com (EHLO Ergus) ([2.152.205.184]) by smtp405.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 9b30f6803f011a61365c4cac0ea7d4ef; Tue, 18 Jun 2019 23:48:12 +0000 (UTC) Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 77.238.179.83 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237875 Archived-At: 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 > >