[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.
- [PATCH] Various fixes for early init file changes, Radon Rosborough, 2018/03/03
- Re: [PATCH] Various fixes for early init file changes, Clément Pit-Claudel, 2018/03/03
- Re: [PATCH] Various fixes for early init file changes,
Noam Postavsky <=
- Re: [PATCH] Various fixes for early init file changes, Radon Rosborough, 2018/03/09
- Re: [PATCH] Various fixes for early init file changes, Noam Postavsky, 2018/03/09
- Re: [PATCH] Various fixes for early init file changes, Eli Zaretskii, 2018/03/19
- Re: [PATCH] Various fixes for early init file changes, Robert Pluim, 2018/03/19
- Re: [PATCH] Various fixes for early init file changes, Radon Rosborough, 2018/03/19
- Re: [PATCH] Various fixes for early init file changes, Stefan Monnier, 2018/03/19
- Re: [PATCH] Various fixes for early init file changes, Radon Rosborough, 2018/03/19
- Re: [PATCH] Various fixes for early init file changes, Stefan Monnier, 2018/03/19
- Re: [PATCH] Various fixes for early init file changes, Radon Rosborough, 2018/03/19
- RE: [PATCH] Various fixes for early init file changes, Drew Adams, 2018/03/19