unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@gmail.com>
To: Zachary Kanfer <zkanfer@gmail.com>
Cc: 31397@debbugs.gnu.org, Radon Rosborough <radon.neon@gmail.com>
Subject: bug#31397: 27.0.50; Emacs doesn't call package-initialize if there's no elpa directory
Date: Tue, 29 May 2018 07:52:02 -0400	[thread overview]
Message-ID: <87o9gyd6hp.fsf@gmail.com> (raw)
In-Reply-To: <CAFXT+RNzHtMJaYi73NJe5jCxwpYYuTaTKO8nWDpiDtvg3EeqfA@mail.gmail.com> (Zachary Kanfer's message of "Thu, 10 May 2018 01:17:12 -0400")

Zachary Kanfer <zkanfer@gmail.com> writes:

> I like my init file to completely set up Emacs: I want to be able to
> start with an empty ~/.emacs.d/ move my init file into it, and start up
> Emacs.
[...]
> I've read up on the early init file. My understanding is that users
> should no longer call #'package-initialize in their init files. This is
> supported by, if I do have a call to #'package-initialize, starting
> Emacs gives me a warning "Warning (package): Unnecessary call to
> ‘package-initialize’ in init file". So I figured I would remove it. But
> I quickly ran into a problem, or at least an area for better
> documentation.
[...]
> A minimal init file that shows my problem is here:
>
>     (require 'package)
>     (add-to-list 'package-archives
>                  '("melpa" . "https://melpa.org/packages/"))
>
>     (message "use-package is installed: %s" (package-installed-p 'use-package))
>
> Here's how I delete the elpa directory, and then start up Emacs:
>
>     $ rm -r ~/.emacs.d/elpa
>     $ src/emacs
>
> Upon doing so, here's the error I get:
>
>     Warning (initialization): An error occurred while loading
> ‘/home/zck/.emacs.d/init.el’:
>
>     error: package.el is not yet initialized!


> Anything I can do to help narrow this down? I'm not sure what to do to make this work.

Perhaps adding Radon to Cc will help, not sure if they're subscribed to
the bug list.





  parent reply	other threads:[~2018-05-29 11:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-10  5:17 bug#31397: 27.0.50; Emacs doesn't call package-initialize if there's no elpa directory Zachary Kanfer
2018-05-29  2:41 ` bug#31397: 27.0.50; Emacs doesn't call package-initialize if there's no Zachary Kanfer
2018-05-29 11:52 ` Noam Postavsky [this message]
2018-05-29 16:13   ` bug#31397: 27.0.50; Emacs doesn't call package-initialize if there's no elpa directory Radon Rosborough
2018-05-29 22:40     ` Noam Postavsky
2018-05-29 22:58       ` Stefan Monnier
2018-08-06 23:41         ` Zachary Kanfer
2019-01-22 23:12           ` Stefan Monnier
2019-11-04 20:01             ` Stefan Kangas
2019-11-04 22:57               ` 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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o9gyd6hp.fsf@gmail.com \
    --to=npostavs@gmail.com \
    --cc=31397@debbugs.gnu.org \
    --cc=radon.neon@gmail.com \
    --cc=zkanfer@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).