From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19151: 24.4; Batch mode doesn't call package-initialize, can't find packages Date: Sat, 02 Jul 2016 11:00:31 +0300 Message-ID: <837fd4tqow.fsf@gnu.org> References: <837fylsww5.fsf@gnu.org> <87furshlwi.fsf@users.sourceforge.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1467446491 24813 80.91.229.3 (2 Jul 2016 08:01:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Jul 2016 08:01:31 +0000 (UTC) Cc: garyo@oberbrunner.com, 19151@debbugs.gnu.org To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 02 10:01:19 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bJFrb-0003vF-9v for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Jul 2016 10:01:19 +0200 Original-Received: from localhost ([::1]:37319 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJFra-0005Pl-Aa for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Jul 2016 04:01:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJFrM-0005Eu-Om for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2016 04:01:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJFrK-0007j4-Nj for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2016 04:01:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJFrK-0007j0-K9 for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2016 04:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bJFrK-0006gE-B2 for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2016 04:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Jul 2016 08:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19151 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 19151-submit@debbugs.gnu.org id=B19151.146744645625660 (code B ref 19151); Sat, 02 Jul 2016 08:01:02 +0000 Original-Received: (at 19151) by debbugs.gnu.org; 2 Jul 2016 08:00:56 +0000 Original-Received: from localhost ([127.0.0.1]:34328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bJFrE-0006fo-5i for submit@debbugs.gnu.org; Sat, 02 Jul 2016 04:00:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58826) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bJFrC-0006fb-UA for 19151@debbugs.gnu.org; Sat, 02 Jul 2016 04:00:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJFr4-0007gD-6B for 19151@debbugs.gnu.org; Sat, 02 Jul 2016 04:00:49 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48857) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJFr4-0007g9-2a; Sat, 02 Jul 2016 04:00:46 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2578 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bJFr3-0000WC-6j; Sat, 02 Jul 2016 04:00:45 -0400 In-reply-to: <87furshlwi.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:120277 Archived-At: > From: npostavs@users.sourceforge.net > Cc: Gary Oberbrunner , 19151@debbugs.gnu.org > Date: Fri, 01 Jul 2016 21:24:45 -0400 > > >From a656d3ce526fc475a3067599f09b85771ea39ba0 Mon Sep 17 00:00:00 2001 > From: Noam Postavsky > 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. I would rephrase the last sentence: However, when @code{package-enable-at-startup} is @code{nil}, Emacs doesn't initialize packages. When Emacs is started with one of the options @samp{-q}, @samp{-Q}, or @samp{--batch}, @code{package-enable-at-startup} is @code{nil} by default; to initialize packages in that case, explicitly set that variable to a non-@code{nil} value (e.g., via the @samp{--eval} option). The reason is that the additional explicit information about how to initialize packages in this case is IMO valuable, and also we should avoid passive tense as much as possible. Thanks.