emacs-diffs
[Top][All Lists]
Advanced

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

master a7d51085cf0: Improve documentation of 'package-enable-at-startup'


From: Eli Zaretskii
Subject: master a7d51085cf0: Improve documentation of 'package-enable-at-startup'
Date: Sat, 27 Apr 2024 04:53:33 -0400 (EDT)

branch: master
commit a7d51085cf0a6e6d01fa265001d7d6a4bd728ed2
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Improve documentation of 'package-enable-at-startup'
    
    * doc/emacs/package.texi (Package Installation): Clarify how to
    customize 'package-enable-at-startup'.
    
    * lisp/emacs-lisp/package.el (package-enable-at-startup): Add note
    about customization.  (Bug#70402)
---
 doc/emacs/package.texi     | 8 ++++++--
 lisp/emacs-lisp/package.el | 8 +++++++-
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/doc/emacs/package.texi b/doc/emacs/package.texi
index c8f790bab47..fd445805068 100644
--- a/doc/emacs/package.texi
+++ b/doc/emacs/package.texi
@@ -490,8 +490,12 @@ startup if invoked with the @samp{-q} or 
@samp{--no-init-file} options
   To keep Emacs from automatically making packages available at
 startup, change the variable @code{package-enable-at-startup} to
 @code{nil}.  You must do this in the early init file, as the variable
-is read before loading the regular init file.  Currently this variable
-cannot be set via Customize.
+is read before loading the regular init file.  Therefore, if you
+customize this variable via Customize, you should save your customized
+setting into your early init file.  To do this, set or change the value
+of the variable @code{custom-file} (@pxref{Saving Customizations}) to
+point to your early init file before saving the customized value of
+@code{package-enable-at-startup}.
 
 @findex package-quickstart-refresh
 @vindex package-quickstart
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index ab1731aeb54..8c915766e1c 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -174,7 +174,13 @@ with \"-q\").
 
 Even if the value is nil, you can type \\[package-initialize] to
 make installed packages available at any time, or you can
-call (package-activate-all) in your init-file."
+call (package-activate-all) in your init-file.
+
+Note that this variable must be set to a non-default value in
+your early-init file, as the variable's value is used before
+loading the regular init file.  Therefore, if you customize it
+via Customize, you should save your customized setting into
+your `early-init-file'."
   :type 'boolean
   :version "24.1")
 



reply via email to

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