all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* package-initialize warning despite no package-initialize
@ 2018-03-25 15:32 Stephen Berman
  2018-03-25 16:47 ` Stephen Berman
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Berman @ 2018-03-25 15:32 UTC (permalink / raw)
  To: emacs-devel

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 ‘package-initialize’ in init 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: package-initialize warning despite no package-initialize
  2018-03-25 15:32 package-initialize warning despite no package-initialize Stephen Berman
@ 2018-03-25 16:47 ` Stephen Berman
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Berman @ 2018-03-25 16:47 UTC (permalink / raw)
  To: emacs-devel

On Sun, 25 Mar 2018 17:32:18 +0200 Stephen Berman <stephen.berman@gmx.net> 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 ‘package-initialize’ in init 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-25 16:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-25 15:32 package-initialize warning despite no package-initialize Stephen Berman
2018-03-25 16:47 ` Stephen Berman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.