From: Glenn Morris <rgm@gnu.org>
To: kostafey <kostafey@gmail.com>
Cc: 12721@debbugs.gnu.org
Subject: bug#12721: 24.2; package-installed-p behavior on emacs startup
Date: Wed, 24 Oct 2012 13:32:27 -0400 [thread overview]
Message-ID: <juy5ivlqs4.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <CAEo=ZYZRfwrcrJ_=BgxMDtoOpX4R3Muw71+Wc3yDMHQx-a5Meg@mail.gmail.com> (kostafey@gmail.com's message of "Wed, 24 Oct 2012 16:45:40 +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?
next prev parent reply other threads:[~2012-10-24 17:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-24 12:45 bug#12721: 24.2; package-installed-p behavior on emacs startup kostafey
2012-10-24 17:32 ` Glenn Morris [this message]
2012-10-24 17:53 ` Stefan Monnier
2012-10-25 5:13 ` kostafey
2012-10-25 12:39 ` Stefan Monnier
2012-10-26 1:33 ` Richard Stallman
2012-10-26 2:05 ` Stefan Monnier
2012-10-27 1:14 ` Richard Stallman
2012-10-27 2:43 ` Stefan Monnier
2012-10-27 18:19 ` Richard Stallman
2012-10-27 21:54 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=juy5ivlqs4.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=12721@debbugs.gnu.org \
--cc=kostafey@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.