From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: Silently loading site files in -batch mode Date: Mon, 06 Aug 2012 12:33:56 +0200 Message-ID: <501F9D94.8000105@easy-emacs.de> References: <501F552E.1020101@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1344249259 20282 80.91.229.3 (6 Aug 2012 10:34:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Aug 2012 10:34:19 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Jack Kelly Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 06 12:34:19 2012 Return-path: Envelope-to: geh-help-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 1SyKda-00079f-K9 for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Aug 2012 12:34:14 +0200 Original-Received: from localhost ([::1]:45085 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyKdZ-0002se-Qj for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Aug 2012 06:34:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyKdT-0002pa-S1 for help-gnu-emacs@gnu.org; Mon, 06 Aug 2012 06:34:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SyKdS-0003BJ-Ku for help-gnu-emacs@gnu.org; Mon, 06 Aug 2012 06:34:07 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.186]:50786) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyKdS-0003BA-Am for help-gnu-emacs@gnu.org; Mon, 06 Aug 2012 06:34:06 -0400 Original-Received: from [192.168.178.27] (brln-4db9f23d.pool.mediaWays.net [77.185.242.61]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0LgvCQ-1Ta9lK2Rks-00oEo1; Mon, 06 Aug 2012 12:34:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: X-Provags-ID: V02:K0:7QMKq3eOMVNQC8CqTD/UXgehfttYw4K3LFAfP3W5D3C m3RPVnLFVVZIHMI6I5n1kIGNi5F62aaOKIHAnsfqsY/u+aAvlR PRlVEgk32BPTaR85lwwiOibmSXgBHGaArr5RjGk80hTEkKq6aT BY3vjDGK0OPcMRMEwKvNR1IP5TjKyLkpV3whuv6mAnBrH/rgkP LrnrcYY36qjgpSEX/Fn9Mf18bavib0CLxcCQHLuHXt77sveB/I NXZiuHfWyBzUn0Q0K0Mh/55E+6idDKrrfC02uzgk6PfX/+Ys0y a+r4mdYTHiFoVWCWg/q2TfKzGs7qYgh7ruaC1faTD+L0SN1LQs vfwkpaE9cpssxFZAQ7LFV2las8TYdviSPO63QZzzD X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.126.186 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86217 Archived-At: Am 06.08.2012 10:23, schrieb Jack Kelly: > On Mon, Aug 6, 2012 at 3:25 PM, Andreas Röhler > 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 >