From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Re: bug#30854: 27.0.50; Speeding up package.el startup Date: Tue, 22 Dec 2020 19:24:11 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30401"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Stefan Kangas , "emacs-devel@gnu.org" To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 22 19:25:44 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1krmLw-0007pA-E1 for ged-emacs-devel@m.gmane-mx.org; Tue, 22 Dec 2020 19:25:44 +0100 Original-Received: from localhost ([::1]:56966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krmLv-0005Hv-Gc for ged-emacs-devel@m.gmane-mx.org; Tue, 22 Dec 2020 13:25:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krmKY-0004Ce-Nb for emacs-devel@gnu.org; Tue, 22 Dec 2020 13:24:18 -0500 Original-Received: from mail-oln040092069103.outbound.protection.outlook.com ([40.92.69.103]:36354 helo=EUR02-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krmKW-00086L-64 for emacs-devel@gnu.org; Tue, 22 Dec 2020 13:24:18 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d75ctUYinQYoBSLBbSqVkH8A1ZmE0L96CgtiOGBd0/ujzxQ7zhX/VaHeAhLVTwJXsyY1CSedeHrDeu5aF8ErzYDZiuxTVsGMgxqiIRH3nf6m/RbVNWSxUK+E9SLqoggZYhcMMDGVdv2OSjRbN3BG4ZsPOG8qZZDYuu29BQTy02K7VYhBWfXCoNx+qflKXz2Ep8k+Gy0SoKtjL/HSgcef+6ZMnQpQS7HEorvuLrVqERvztbOZPxk5C6j+U4WRminvR1ZMfYXvcrMMcBzMw0GvlDeQG0J54wImcjUyIjTT9ObeGi5opPaWV5RN1OdpfluaAF6uF/VJRYeDNYbGc+aAtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=05GPVxDZYtrzvbKL3D20qrTeBPTbH9NwZqnC9diTg1g=; b=MqC5vxRtfid6g51Z/cJppVGKg9sXIcBz+CaHoKaglRkWRx70lqGxMt+GD50NjRs2X2xufwsw4ORUBHs1dJP9FKaxlGT0zwHUcefCeBUAXc3mk870bUmpd+vJ6wetczacDpicGxQU2JRIB/SXdUPqT1LHSwXuCKw3eWljAn44bnOU1QrRs00WquI4R24tKyHB1wduemXyEyh/n1MUgZ7cI39gxWER8GBMf4HORdoVejTLe27JSd2b+XqtEl3ZEt0Sj8b/3SFwvIea2sECOWXTGCp57mVtUvvMltxc2D6prJfJXQRuqcYRHWJjj4dn4jaf3Iz6ais6mKzBZwyLqTgrEw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=05GPVxDZYtrzvbKL3D20qrTeBPTbH9NwZqnC9diTg1g=; b=Zz/LFiWhXc3Pi2borlisZXxYxVLJsH0BsD5JAi0Jn6A8NXGgECl9CxJx0dvaWfhf0aLcwSBAu3CH8nyuXFXUBg1QM2MTbKmKADubiKzJiwISNnMrfhj0qqQY0wok0Ks66ffJhV4gXErta/DLMoHvKnNT9rXyqD//VSadEynXwbcxFDegBcRmxGimXnzyMWYSEwDiE6sX0hZBKrP1Y818RTQeGDCKR1jltCD+oKJOLEwjj5EbbfL7muquIza2OL2DPhg5lm1d+2aFrs8DQ57G2OVESPg/YcGr8tlXSHIF/UQjyrV2SR9QYvvGrp7xVY0O6X7zUp4uRWxZHP6SK4/ZDQ== Original-Received: from AM5EUR02FT046.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1c::44) by AM5EUR02HT111.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1c::497) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.22; Tue, 22 Dec 2020 18:24:12 +0000 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com (2a01:111:e400:7e1c::51) by AM5EUR02FT046.mail.protection.outlook.com (2a01:111:e400:7e1c::221) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.22 via Frontend Transport; Tue, 22 Dec 2020 18:24:12 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:B3B3BD054666806F1BA26808E990982C5CB25735B7E3DD600A92220A1FD88ED4; UpperCasedChecksum:C996E5BB6C71A8002B4C63DA0FC9F1654F840ECFD11C262B673E42E8D15D0707; SizeAsReceived:8807; Count:46 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993]) by AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993%8]) with mapi id 15.20.3676.033; Tue, 22 Dec 2020 18:24:12 +0000 In-Reply-To: (Stefan Monnier's message of "Tue, 22 Dec 2020 12:20:11 -0500") X-TMN: [t72PAOPNCqOGfP6EQJ16UCKmSAFzfPbw] X-ClientProxiedBy: AM6P192CA0078.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:8d::19) To AM0PR06MB6577.eurprd06.prod.outlook.com (2603:10a6:208:19a::23) X-Microsoft-Original-Message-ID: <87r1nhbsxg.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (90.230.29.56) by AM6P192CA0078.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:8d::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3700.27 via Frontend Transport; Tue, 22 Dec 2020 18:24:11 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: de17102a-3569-4c98-816d-08d8a6a6c7eb X-MS-TrafficTypeDiagnostic: AM5EUR02HT111: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nfLX4QNdeVyEMDcH096RcFb9cLDq5kp2N41NyN+T8iLfiOdVmvPbneC4hSTjG8UC3nBgDJAjCTB2YuRqQUUXl0X8tdu5/02JoWMGr3E5h0us0rSZpyHZNtlgAFWjUM/W8vtxYHhr0k8G6VYgyZlGoaqXLwScgcqGskCZtRV8nYH3C6NEdFv0HwhvbNbDXmne0y2/MQ08l3MC3+SLLjbYUiVW0tBBLLHvioohosePbtLKzEGspKQKCEV0C08DR9nb X-MS-Exchange-AntiSpam-MessageData: BsYQMm/GqNroW/jbXES0UW1MkQ9asUsm5wHKgYYI/EMx4vxmb+6XHy5rgNBtprJYUnwNTQ82w1bkoBPLyryc1JSTtl/6g4INv6aOS08zsLFchHur5rq+17+ti5tYXg+vRsJjrXpdG9A/9SNSxrkNAg== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Dec 2020 18:24:12.0682 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-Network-Message-Id: de17102a-3569-4c98-816d-08d8a6a6c7eb X-MS-Exchange-CrossTenant-AuthSource: AM5EUR02FT046.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR02HT111 Received-SPF: pass client-ip=40.92.69.103; envelope-from=arthur.miller@live.com; helo=EUR02-VE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:261521 Archived-At: Stefan Monnier writes: >>> I does: it processes the packages using the exact same code as >>> `package-activate-all`, so it obeys `package-load-list` (at least last >>> time I checked). >> >> Via (package-activate (car elt)) ? > > Yes. > >> What is the workflow for the user to disable a package from loading? > > Set `package-load-list`. Is it up to user to serialize this list to disk for next session or is it somehow done on the user behalf? If user disabled a package, and generated new autoloads, and then there were new packages installed in site repository, how would Emacs know which are disabled and which are just new ones? There would be need for some kind of list/info that a package is disabled so it is not loaded a new when packages are refreshed from the site archive. >> Do you have any plan to implement this? > > Don't know what you're referring to. My suggestion: 1. let's implement auto creation of quickstart file (can we rename it to package-autoloads.el or something more descriptive?) without user needing to take action. 2. turn quicstart into opt-out instead of opt-in so more users test it and can repport if there are problems 3. add suppoort for site archive(s) 4. add support for blacklist so user can ensure Emacs is not re-enabling packages from site archive just because the archive got updated 1. is probably trivial, since package.el already can do that. It just needs to call package-quickstart-refresh from few more places. 2. as well 3. will need some extra code, mostly or only in startup.el 4. will need some extra code in package.el, maybe in startup.el too, not sure Just a suggestion.