all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: Jack Kelly <jack@jackkelly.name>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Silently loading site files in -batch mode
Date: Mon, 06 Aug 2012 12:33:56 +0200	[thread overview]
Message-ID: <501F9D94.8000105@easy-emacs.de> (raw)
In-Reply-To: <CAEnY7O90RNjt0oG8fZkcT96MMfm+QNn8EW7LJ2E37-O6xKUp-g@mail.gmail.com>

Am 06.08.2012 10:23, schrieb Jack Kelly:
> On Mon, Aug 6, 2012 at 3:25 PM, Andreas Röhler
> <andreas.roehler@easy-emacs.de> wrote:
>> Am 06.08.2012 00:02, schrieb Jack Kelly:
>>
>> $EMACS -Q --batch --eval "(load \"MY-FILE\" nil t)"
>
> This is quiet and simple, but is it safe to invoke the byte-compiler
> with -Q? I worry that in some cases, a required package might not be
> loaded if -Q is used.

You are right. OTOH, when compiling a certain stuff, you might not need all loads from init.

  The byte-compile could then fail if (require
> 'foo) in the compiled file fails. Or am I wrong?

that depends IMO if the path-TO-FOO is known here already.

BTW if interested, maybe have a look at my use-case

http://bazaar.launchpad.net/~a-roehler/python-mode/components-python-mode/view/head:/test/python-mode-tests.sh

not saying it's perfect :)

>
> -- Jack
>




  reply	other threads:[~2012-08-06 10:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-05 22:02 Silently loading site files in -batch mode Jack Kelly
2012-08-06  5:25 ` Andreas Röhler
2012-08-06  8:23   ` Jack Kelly
2012-08-06 10:33     ` Andreas Röhler [this message]
2012-08-06 15:55     ` Doug Lewan
2012-08-06 23:17       ` Jack Kelly
2012-08-07  3:38         ` PJ Weisberg
2012-08-07  3:57           ` Jack Kelly
2012-08-07  4:49             ` PJ Weisberg
2012-08-07  5:05               ` Jack Kelly

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=501F9D94.8000105@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=jack@jackkelly.name \
    /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.