bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#19151: 24.4; Batch mode doesn't call package-initialize, can't find


From: npostavs
Subject: bug#19151: 24.4; Batch mode doesn't call package-initialize, can't find packages
Date: Fri, 01 Jul 2016 21:24:45 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux)

tags 19151 patch
quit

Eli Zaretskii <eliz@gnu.org> writes:
>> The documentation at
>> http://www.gnu.org/software/emacs/manual/html_node/elisp/Startup-Summary.html
>> is not totally clear on this, but it implies that packages should be loaded.
>
> I think this is a documentation bug.  package-initialize is not
> invoked under -q (which I Think makes sense), and -batch implies -q.

Other items nearby explicitly talk about those options, here's a patch
to add it for package-initialize as well.  Looks ok?

>From a656d3ce526fc475a3067599f09b85771ea39ba0 Mon Sep 17 00:00:00 2001
From: Noam Postavsky <npostavs@gmail.com>
Date: Fri, 1 Jul 2016 21:15:28 -0400
Subject: [PATCH v1] Explain when package-initialize isn't called

* doc/lispref/os.texi (Startup Summary): Explain that package-initialize
is not called when options -q, -Q, or --batch were passed (Bug #19151).
---
 doc/lispref/os.texi | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi
index 5f189b9..e15eec7 100644
--- a/doc/lispref/os.texi
+++ b/doc/lispref/os.texi
@@ -155,9 +155,11 @@ Startup Summary
 option @samp{--batch} was specified.
 
 @item
-If @code{package-enable-at-startup} is non-@code{nil}, it calls the
-function @code{package-initialize} to activate any optional Emacs Lisp
-package that has been installed.  @xref{Packaging Basics}.
+It calls the function @code{package-initialize} to activate any
+optional Emacs Lisp package that has been installed.  @xref{Packaging
+Basics}.  This is not done if @code{package-enable-at-startup} is
+@code{nil}, nor if the options @samp{-q}, @samp{-Q}, or @samp{--batch}
+were specified.
 
 @vindex after-init-time
 @item
-- 
2.8.0


reply via email to

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