[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Fixing package-initialize, adding early init file

From: Stefan Monnier
Subject: Re: [PATCH] Fixing package-initialize, adding early init file
Date: Wed, 21 Feb 2018 03:16:04 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> Might it be a good idea to have `package-initialize' signal a warning
> if it's called multiple times? I hadn't considered this side effect of
> the change, but at least it's easier to get users to remove
> a duplicate call than to add a missing one.
> Are there ever circumstances where calling `package-initialize' more than
> once makes sense?

It can make sense if packages were added/removed/updated without
Emacs's knowledge.  So maybe we need something more targeted to
~/.emacs, by temporarily let-binding a package--within-init.el variable
(this would also allow us to not only emit a message but even skip the
execution of such a second call to package-initialize).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]