Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnecessary call to ‘package-initialize’ in init file #194

Closed
rbirkelbach opened this issue Apr 8, 2018 · 9 comments

Comments

Projects
None yet
3 participants
@rbirkelbach
Copy link

commented Apr 8, 2018

Hello,

does anybody have an idea how to get rid of this warning message when loading scimax?

Warning (package): Unnecessary call to ‘package-initialize’ in init file [2 times]

Best,
Robert

jkitchin added a commit that referenced this issue Apr 8, 2018

@jkitchin

This comment has been minimized.

Copy link
Owner

commented Apr 8, 2018

I think this is happening in help-fns+. Let me know if commit ecdecd9 resolves it for you.

@rbirkelbach

This comment has been minimized.

Copy link
Author

commented Apr 9, 2018

It did something, as it now just says

Warning (package): Unnecessary call to ‘package-initialize’ in init file

without the [2 times] in the end. I forgot to mention that I'm on emacs 27.0.50, so maybe this version of emacs is behaving differently than older versions.

@jkitchin

This comment has been minimized.

Copy link
Owner

commented Apr 10, 2018

I read something on the org-list that emacs 27 might automatically initialize for you, so the ones in the init file are not necessary. I guess I should add some conditional statement to avoid it.

@rbirkelbach

This comment has been minimized.

Copy link
Author

commented Apr 10, 2018

Okay, I wasn't aware of it. So it should be safe to just comment it out for now?

@jkitchin

This comment has been minimized.

Copy link
Owner

commented Apr 11, 2018

I guess so. I don't have a way to test it. I would just try it and see what happens.

@rbirkelbach

This comment has been minimized.

Copy link
Author

commented Apr 11, 2018

It works for now. When time permits (maybe this weekend) and if I do not forget to do so, I'll try to see how it works on a fresh install of scimax using the most current emacs version on arch linux (emacs-git package from aur).

@jkitchin

This comment has been minimized.

Copy link
Owner

commented Apr 11, 2018

Probably you need to add a conditional like

(when (version< emacs-version "27.0") (package-initialize))

for earlier versions that don't automatically initialize.

@peterpolidoro

This comment has been minimized.

Copy link

commented Apr 30, 2018

(unless package--initialized (package-initialize t))

jkitchin pushed a commit that referenced this issue Apr 30, 2018

John Kitchin
@jkitchin

This comment has been minimized.

Copy link
Owner

commented Apr 30, 2018

Thanks. I will give that a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.