From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Only signal package.el warnings when needed Date: Mon, 14 Jan 2019 17:48:52 +0200 Message-ID: <83k1j7dyu3.fsf@gnu.org> References: NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1547480836 23356 195.159.176.226 (14 Jan 2019 15:47:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2019 15:47:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: Radon Rosborough Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 14 16:47:12 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 esmtp (Exim 4.84_2) (envelope-from ) id 1gj4SG-0005yu-JD for ged-emacs-devel@m.gmane.org; Mon, 14 Jan 2019 16:47:12 +0100 Original-Received: from localhost ([127.0.0.1]:58345 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gj4UN-0005o2-Ls for ged-emacs-devel@m.gmane.org; Mon, 14 Jan 2019 10:49:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gj4U6-0005mu-VX for emacs-devel@gnu.org; Mon, 14 Jan 2019 10:49:07 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gj4U6-0002wh-HV; Mon, 14 Jan 2019 10:49:06 -0500 Original-Received: from [176.228.60.248] (port=4472 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gj4U6-0002ug-5n; Mon, 14 Jan 2019 10:49:06 -0500 In-reply-to: (message from Radon Rosborough on Sun, 13 Jan 2019 21:17:58 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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:232337 Archived-At: > From: Radon Rosborough > Date: Sun, 13 Jan 2019 21:17:58 -0700 > > In January 2018, we added support for an early init-file to Emacs 27, > and adjusted Emacs startup to invoke `package-initialize' before > loading the standard init-file (but after loading the early > init-file). This change was adopted, at my suggestion, in order to > obviate the need for `package-initialize' being called in the user's > init-file, and to remove the feature by which Emacs added the call > automatically (which had various disadvantages). > > The problem with this change is that many existing init-files contain > a call to `package-initialize', meaning that the function is called > twice during startup. Currently, a warning is emitted when this > occurs. However, there is a better way to solve the problem: simply do > nothing the second time `package-initialize' is invoked. But we didn't actually hear complaints about that, did we? I wonder why should we complicate this stuff even more before collecting enough real-life experience, which will allow us to have some basis for code changes -- provided that changes are indeed in order. Thanks.