unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: npostavs@users.sourceforge.net
To: Eli Zaretskii <eliz@gnu.org>
Cc: Gary Oberbrunner <garyo@oberbrunner.com>, 19151@debbugs.gnu.org
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	[thread overview]
Message-ID: <87furshlwi.fsf@users.sourceforge.net> (raw)
In-Reply-To: <837fylsww5.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 23 Nov 2014 18:29:46 +0200")

[-- Attachment #1: Type: text/plain, Size: 510 bytes --]

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?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch --]
[-- Type: text/x-diff, Size: 1208 bytes --]

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	other threads:[~2016-07-02  1:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-22 22:24 bug#19151: 24.4; Batch mode doesn't call package-initialize, can't find packages Gary Oberbrunner
2014-11-23 11:26 ` Ted Zlatanov
2014-11-23 16:29 ` Eli Zaretskii
2016-07-02  1:24   ` npostavs [this message]
2016-07-02  8:00     ` Eli Zaretskii
2016-07-02 20:50       ` npostavs
2016-07-03  4:14         ` Eli Zaretskii
2016-07-03 13:21           ` npostavs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87furshlwi.fsf@users.sourceforge.net \
    --to=npostavs@users.sourceforge.net \
    --cc=19151@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=garyo@oberbrunner.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).