From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: package-initialize warning despite no package-initialize Date: Sun, 25 Mar 2018 18:47:52 +0200 Message-ID: <87woy0qeyv.fsf@gmx.net> References: <87fu4o41dp.fsf@gmx.net> 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 1521996393 8666 195.159.176.226 (25 Mar 2018 16:46:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Mar 2018 16:46:33 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 25 18:46:29 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f08mq-00028F-Cu for ged-emacs-devel@m.gmane.org; Sun, 25 Mar 2018 18:46:28 +0200 Original-Received: from localhost ([::1]:51905 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f08ot-0004gs-MA for ged-emacs-devel@m.gmane.org; Sun, 25 Mar 2018 12:48:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f08oI-0004gK-RW for emacs-devel@gnu.org; Sun, 25 Mar 2018 12:47:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f08oF-0004Wy-HF for emacs-devel@gnu.org; Sun, 25 Mar 2018 12:47:58 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:41305) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f08oF-0004W3-7A for emacs-devel@gnu.org; Sun, 25 Mar 2018 12:47:55 -0400 Original-Received: from rosalinde ([83.135.3.157]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MDm4o-1enWHH2Fry-00H61X for ; Sun, 25 Mar 2018 18:47:53 +0200 In-Reply-To: <87fu4o41dp.fsf@gmx.net> (Stephen Berman's message of "Sun, 25 Mar 2018 17:32:18 +0200") X-Provags-ID: V03:K0:re2yof/2X5ZhuY2MteF69DQpPMMdHRcQMNe6OCjTOqsIjlvUR5G 02njtry1WSNu6wvi/Zv9vjBBd1QRDV7YazMIeqrPaUfRMDmIDYtdSxPlRL/DNG3QJ2fV+P9 ErkxF3Z6VU2tBChFCmAasOAR8fN9TYccAic7MYEWD65vvGevUOZiAQdMfO8iHbKdwzXP1si KD9yb5gk2yAAPZcb0a/AA== X-UI-Out-Filterresults: notjunk:1;V01:K0:T3gRHwKyIXk=:Nl40AMnvC11wZTLKqLBlRX whB+eucF0sxV2MpQfPSwaidtorIsMJmyjVCYd/W/faR2fYdLuYAfizpUnBK01/o8J8o9zXSeE 2JM86heNNS45zV1ZA80mOfAWn2TzREbPat2Gnc1xWgGUGIGyMQ5JWlewb6pL75OQKDr5OQhes scg59o7EmkH7P7UlZKxGsrVo9pxz1x0A5qAbc8m+sMZD6oPg2t0TFol8j0lCFLiOhKOcinAVo 4A4j0153WbIfLTWB44khZUHnETlEMMNJh0N7+6MLEY544M9fEKom5Ujl3H7iaH2MFWjy6ayBC L/3/Ak+lL6pKA3uK0IJDOA9fSFySFGsSWUmmBuyjd59Zr0+TWa8w1EXuv418tbZokf2NGQsqE /F5CSkmi1tre7lCpLHHc6JCStRy1CBFpyuTVFMLo2tZUcGOHAp22lFLVtDjznXn5hTxKxOitd zuG2vKN5HYLsIx3WVF7luhMV1kXmwMGbeVbgxTvFm5D1bX1vjY2Z1gxtjCOdN/n0lal10iiZB GC2T0QxAZsPnzgh8O6Q+N5artR/WrsBfm9pnVc1Okdi6KwYt3AKor10Gg//wcGOKhn6+CrS2B admIX9UnidDR5OvAqax593LeSgqG5MVWn900mRvFZoPJ7Q/OEyRpIKLg2+AUBpjDjDPJ74O6E 398Z/EG8TJAaf/yuZb8Wp0RRczr1yeTlyDVITfpUVko77Xa7jZDFq431VVozdcuiCQZCnRJyS MmPz5Za0mbHnDzNy51zVdkNpdgoIOeLJMMqGUNDqqgKAhsLl2oMSGiSeiwSV39TA0aAhplvE X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.22 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:224009 Archived-At: On Sun, 25 Mar 2018 17:32:18 +0200 Stephen Berman = wrote: > I just updated and rebuilt emacs from master for the first time since > the changes involving package-initialize in 24acb31c04 and 2db57579b0. > On restarting emacs with my initializations I got the warning "Warning > (package): Unnecessary call to =E2=80=98package-initialize=E2=80=99 in in= it file", since > I still had `(package-initialize)' in my init file. Following the > advice in the doc string of package-initialize I removed that sexp and > restarted emacs, but still get the warning. I do not have an early init > file and I rebuilt with `make bootstrap'. I grepped for > package-initialize and found no calls to it in files in my load-path > other than startup.el. Is the doc string wrong or is there something > else causing that warning that I've overlooked? In any case, how do I > get rid of this warning? > > Another surprising thing is that, although emacs-26 does not have the > above changes and hence AFIU should still need `(package-initialize)' in > the init file, yet starting emacs-26 with the same init file lacking > this sexp, my packages nevertheless are immediately available (I infer > this because my init file calls `pdf-tools-install' from the pdf-tools > package and viewing PDF files does indeed use this package in emacs-26 > just as in emacs from master). That is, it seems that > package-initialize is not needed in the init file in emacs-26 either, or > have I misunderstood this too? > > Steve Berman This was a false alarm, sorry. Both master and emacs-26 work as expected. (I have both the file ~/.emacs.d/init.el, which is my real init file, as well as the file ~/.emacs, which is needed by one of the GNU/Linux systems I have and loads the former file; I had neglected to remove `(package-initialize)' from the latter file.) Steve Berman