From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Only signal package.el warnings when needed Date: Mon, 14 Jan 2019 17:10:21 +0100 Message-ID: References: <83k1j7dyu3.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1547482248 28227 195.159.176.226 (14 Jan 2019 16:10:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2019 16:10:48 +0000 (UTC) Cc: Radon Rosborough , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 14 17:10:44 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 1gj4ov-00073H-W7 for ged-emacs-devel@m.gmane.org; Mon, 14 Jan 2019 17:10:38 +0100 Original-Received: from localhost ([127.0.0.1]:35416 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gj4r3-0003sA-1s for ged-emacs-devel@m.gmane.org; Mon, 14 Jan 2019 11:12:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53524) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gj4ol-0001jP-LR for emacs-devel@gnu.org; Mon, 14 Jan 2019 11:10:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gj4oi-0002vG-Sz for emacs-devel@gnu.org; Mon, 14 Jan 2019 11:10:26 -0500 Original-Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:41156) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gj4oi-0002sC-JC; Mon, 14 Jan 2019 11:10:24 -0500 Original-Received: by mail-wr1-x444.google.com with SMTP id x10so23491366wrs.8; Mon, 14 Jan 2019 08:10:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=/nDalu/2gqJmnxG2H9pJciKgF5zbB0oQVQy6Da/cTuk=; b=h4rWj3r/ofQlvfFYXz+N7got1adY7m4dCfd4xqQEB411CxSvnyDifhetdlmQHXI0E4 +cewpJmlhC8fPt6QAVRA7KwgM5mUUbmdk4duFz8QV+WGOgiSVxvRvIzsZRF9/LKUhQ++ OULNsjzB0TaXlRKa+BJCQAbW4k76DHtKuNzNtddMpwufZaUZ/4cHoUOVZ5f5Z/F8R7mI hRs+h4yu2KOLQTllEsekJY89Qf0Yf3ksx2glKBP5031uDe837E8dNSwmEE3RCac+iFpv nc4nB4U20UL3EQKto5rBzayP8fxgoxubxbHHLKfAgHjeDDOP50u/LHj7flCgW4eqBCkV X8AA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=/nDalu/2gqJmnxG2H9pJciKgF5zbB0oQVQy6Da/cTuk=; b=EmB8tYDs/vEi1gEROOnjPPQWWxeAx0stiYceTcojyA7AVddFmATmtuawBorXG/ArJV lmMkuo7QBuW7e/cXcbGxUQq2v9ONhvD7zcifM+yINz/MeTzSPhWxV/FPRiKsH/YGwbpg 9d3e0wwmYNiS15Pqjrk3eoQnJiaZhpIwJ7LRpv9H46OOqMBXcWSUg+eJ2oLpCmyIjdwz 2L7wy4V+vBhsXre7erKE9tlyyYzgDverImTVy3ymBeMNRAZwM1+RUJ7AxUpKBuuX4AVa W7XUM5G7PI0DEjY7Vrnmfsk9gqISOQ3H3vp+5x3a/xfTOrHtpG8Aanifhx1NxGY7bpEn yrZQ== X-Gm-Message-State: AJcUukdDeKDl95XiwBjtpaNGE6lnDrfo5xEa6DONNxLQubG1uClkjd4Y FiFDhp9RAOBbknq0h1DZt5Y5Z47p X-Google-Smtp-Source: ALg8bN7Jml7T7W7SSNQg765Fko3k1VMhr/nj9/82GEw0J9sWed02uG6Aksdsq0LlowrniX/b4rE8rQ== X-Received: by 2002:a5d:550f:: with SMTP id b15mr25876154wrv.330.1547482222601; Mon, 14 Jan 2019 08:10:22 -0800 (PST) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id v132sm31060843wme.20.2019.01.14.08.10.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 08:10:21 -0800 (PST) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <83k1j7dyu3.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 14 Jan 2019 17:48:52 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::444 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:232340 Archived-At: Eli Zaretskii writes: >> From: Radon Rosborough >> Date: Sun, 13 Jan 2019 21:17:58 -0700 >>=20 >> 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). >>=20 >> 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. It=CA=BCs not caused me any problems, but I=CA=BCm a simple user of 'package-initialize', so calling it once or twice would make no difference. What is annoying is the startup message I get on stdout because I have package-quickstart set to t: Loading ~/.emacs.d/package-quickstart.el (source)... Loading ~/.emacs.d/package-quickstart.el (source)...done It would be great if that disappeared. Robert