|
From: | Andreas Röhler |
Subject: | Re: Silently loading site files in -batch mode |
Date: | Mon, 06 Aug 2012 12:33:56 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120713 Thunderbird/14.0 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |