* Emacs master: package-initialize warning
@ 2018-03-31 12:55 Angelo Graziosi
2018-03-31 13:42 ` Charles A. Roelli
0 siblings, 1 reply; 2+ messages in thread
From: Angelo Graziosi @ 2018-03-31 12:55 UTC (permalink / raw)
To: emacs-devel
After building a recent master, starting Emacs prints a warning about package-initialize, which should not be called anymore in the init file. Applying this change
--- init.el-save 2017-08-27 22:02:15.409019114 +0200
+++ init.el 2018-03-31 13:58:03.119791221 +0200
@@ -86,7 +86,8 @@
'package-archives
'("melpa" . "http://melpa.org/packages/")
t)
- (package-initialize))
+ ;;(package-initialize)
+ )
;; Settings for tabbar-ruler..
;;(setq tabbar-ruler-fancy-tab-separator 'arrow)
seems to fix the warning.
Should I do something else or this is enough?
Thanks,
Angelo.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Emacs master: package-initialize warning
2018-03-31 12:55 Emacs master: package-initialize warning Angelo Graziosi
@ 2018-03-31 13:42 ` Charles A. Roelli
0 siblings, 0 replies; 2+ messages in thread
From: Charles A. Roelli @ 2018-03-31 13:42 UTC (permalink / raw)
To: Angelo Graziosi; +Cc: emacs-devel
Sounds right to me, see etc/NEWS:
** Installed packages are now activated *before* loading the init file.
This is part of a change intended to eliminate the behavior of
package.el inserting a call to 'package-initialize' into the init
file, which was previously done when Emacs was started. As a result
of this change, it is no longer necessary to call 'package-initialize'
in your init file.
However, if your init file changes the values of 'package-load-list' or
'package-user-dir', or sets 'package-enable-at-startup' to nil then it won't
work right without some adjustment:
- you can move that code to the early init file (see above), so those settings
apply before Emacs tries to activate the packages.
- you can use the new 'package-quickstart` so activation of packages does not
need to pay attention to 'package-load-list' or 'package-user-dir' any more.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-31 13:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-31 12:55 Emacs master: package-initialize warning Angelo Graziosi
2018-03-31 13:42 ` Charles A. Roelli
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).