emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 4449301: * etc/NEWS: Improve documentation of 'pack


From: Stefan Kangas
Subject: [Emacs-diffs] master 4449301: * etc/NEWS: Improve documentation of 'package-initialize'.
Date: Mon, 21 Oct 2019 22:16:01 -0400 (EDT)

branch: master
commit 444930104e09b92ac27092aea44985637a39c26d
Author: Stefan Kangas <address@hidden>
Commit: Stefan Kangas <address@hidden>

    * etc/NEWS: Improve documentation of 'package-initialize'.
---
 etc/NEWS | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/etc/NEWS b/etc/NEWS
index 5021322..d44c853 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -171,11 +171,16 @@ make some customization fail to work.
 
 +++
 ** 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.
+As a result of this change, it is no longer necessary to call
+'package-initialize' in your init file.
+
+Previously, a call to 'package-initialize' was automatically inserted
+into the init file when Emacs was started.  This call can now safely
+be removed.  Alternatively, if you want to ensure that your init file
+is still compatible with earlier versions of Emacs, change it to:
+
+(when (version< emacs-version "27.1")
+  (package-initialize))
 
 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



reply via email to

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