Subject: Re: bug#12721: 24.2; package-installed-p behavior on emacs startup

From: Glenn Morris <[email-masked]>
Date: Wed, 24 Oct 2012 13:32:27 -0400

kostafey wrote:

> How the function package-installed-p should behave on emacs startup if
> some package is already installed? It seems that it returns nil for
> installed package on emacs startup.

It needs package-initialize to have been run, which is only done after
your init file has been read, as documented eg in C-h v
package-enable-at-startup. Maybe you could run package-initialize
explicitly and set package-enable-at-startup to nil? Or use
after-init-hook?