emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Various fixes for early init file changes


From: Noam Postavsky
Subject: Re: [PATCH] Various fixes for early init file changes
Date: Thu, 8 Mar 2018 20:30:10 -0500

On Sat, Mar 3, 2018 at 12:31 AM, Radon Rosborough <address@hidden> wrote:

> 3. Warn if `package-initialize' is called twice. This causes Emacs to
> emit a warning, by default, if `package-initialize' is called twice
> during init. I expect this to cause people a lot of warnings, but I
> think this is a good thing, since the alternative (currently) is a
> pretty bad performance regression if people leave a now-superfluous
> extra call to `package-initialize' in their init files. Plus, the fix
> is trivial: just delete the extra call. For people who really do want
> to call `package-initialize' twice for some reason, there is a new
> variable `package-warn-on-reinitialization' which can be customized to
> disable the warning.

You could use

(lwarn '(package reinitialize) :warning
       "Unnecessary call to `package-initialize' in init file")

and then the warning could be suppressed by adding '(package
reinitialize) to warning-suppress-types instead of creating a new
custom option.



reply via email to

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