all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: 19151@debbugs.gnu.org
Subject: bug#19151: 24.4; Batch mode doesn't call package-initialize, can't find packages
Date: Sun, 23 Nov 2014 06:26:51 -0500	[thread overview]
Message-ID: <87fvda6ttw.fsf@lifelogs.com> (raw)
In-Reply-To: <CAFChFyixqrhA4E5yNUZoM0ZdBZHa+5as2YsaCKChVYeNji_upg@mail.gmail.com>

On Sat, 22 Nov 2014 17:24:25 -0500 Gary Oberbrunner <garyo@oberbrunner.com> wrote: 

GO> In batch mode, emacs doesn't load installed packages, although the doc
GO> implies that it should.  If you want to eval forms that require packages,
GO> you have to call (package-initialize) explicitly.
...
GO> The documentation at
GO> http://www.gnu.org/software/emacs/manual/html_node/elisp/Startup-Summary.html
GO> is not totally clear on this, but it implies that packages should be loaded.

I see this in the docs at (info "(elisp) Startup Summary")

  15. If ‘package-enable-at-startup’ is non-‘nil’, it calls the function
     ‘package-initialize’ to activate any optional Emacs Lisp package
     that has been installed.  *Note Packaging Basics::.

Seems pretty clear to me.  We could use a command-line argument to make
--batch more useful, though.  Something like

--package-initialize, -p     Set `package-enable-at-startup' so packages are initialized

WDYT?

Ted






  reply	other threads:[~2014-11-23 11:26 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 [this message]
2014-11-23 16:29 ` Eli Zaretskii
2016-07-02  1:24   ` npostavs
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

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

  git send-email \
    --in-reply-to=87fvda6ttw.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=19151@debbugs.gnu.org \
    --cc=bug-gnu-emacs@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.