From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jack Kelly Newsgroups: gmane.emacs.help Subject: Re: Silently loading site files in -batch mode Date: Tue, 7 Aug 2012 09:17:02 +1000 Message-ID: References: <501F552E.1020101@easy-emacs.de> <155DEC68569B714B86C2C7075F5EDA98268CC8E8@DAKIYA1.pegasus.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1344297580 28725 80.91.229.3 (6 Aug 2012 23:59:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Aug 2012 23:59:40 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Doug Lewan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 07 01:59:40 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 1SyXCz-0007tb-Bm for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Aug 2012 01:59:37 +0200 Original-Received: from localhost ([::1]:34799 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyXCy-0003uh-Ns for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Aug 2012 19:59:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyWXp-0004uW-Hv for help-gnu-emacs@gnu.org; Mon, 06 Aug 2012 19:17:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SyWXo-0004Mg-BH for help-gnu-emacs@gnu.org; Mon, 06 Aug 2012 19:17:05 -0400 Original-Received: from mail-wi0-f177.google.com ([209.85.212.177]:45846) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyWXo-0004MR-5A for help-gnu-emacs@gnu.org; Mon, 06 Aug 2012 19:17:04 -0400 Original-Received: by wibhm11 with SMTP id hm11so1686707wib.12 for ; Mon, 06 Aug 2012 16:17:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=l/kD25534SLXsKl52UAHN0ruU+GNc5Ia+4D1G6xFEeg=; b=0iHiHGp+Mj4jZmogUaEHkoHvq7QPT6CacZRyqho/62PmwRk11+NixjAlKUF9xdXwBG t+EordB7CFC9kd+9xLXVYnskDG/y5BW54TYSEeEvNKTe6kHfOMC0aI2g6udq150Md1Vo FXfBN1aH+7pzjyDGh5OPl4aoEcnYw7dYzFdcFiyU5yEr+JV5SjfVgn7fIBkJpQNtaQEr lTPeRwwFJvHL9DKKPUG1KtTjQyISEV7ouSGyuxCwviuArb99kNK7ff768vGj3MWMBNPJ d0gW1DR0OamM2uAwTf4lop/bwcGSAO4my1Ndvpp7lk805oa55yaKHl3sFlP9/0d7045s Ly6A== Original-Received: by 10.216.123.130 with SMTP id v2mr6519714weh.117.1344295022761; Mon, 06 Aug 2012 16:17:02 -0700 (PDT) Original-Received: by 10.194.93.196 with HTTP; Mon, 6 Aug 2012 16:17:02 -0700 (PDT) In-Reply-To: <155DEC68569B714B86C2C7075F5EDA98268CC8E8@DAKIYA1.pegasus.local> X-Google-Sender-Auth: 71v5d94Z_7PyntbeY7EzmLSuB7o X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.177 X-Mailman-Approved-At: Mon, 06 Aug 2012 19:59:32 -0400 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:86227 Archived-At: Doug, I agree with you, however debian's modifications to how emacs starts up means that there's some potential additions to the load-path that come from files similar to /etc/emacs/site-start.d/50autoconf.el . Not running the call to debian-startup appears to mean that the following could happen: 1. package foo is being compiled. 2. foo.el contains (require 'bar), installed by apt. 3. emacs is invoked with -Q, so the directory containing bar.el or bar.elc is not in the load-path. 4. boom. -- Jack On Tue, Aug 7, 2012 at 1:55 AM, Doug Lewan wro= te: > Everything that you (require) will be loaded -- even with -Q. > > If there's something that's not, then that's a bug in the code that needs= it. > > ,Doug > >> -----Original Message----- >> From: help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org >> [mailto:help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org] On >> Behalf Of Jack Kelly >> Sent: Monday, 2012 August 06 04:24 >> To: Andreas R=F6hler >> Cc: help-gnu-emacs@gnu.org >> Subject: Re: Silently loading site files in -batch mode >> >> On Mon, Aug 6, 2012 at 3:25 PM, Andreas R=F6hler >> 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. The byte-compile could then fail if (require >> 'foo) in the compiled file fails. Or am I wrong? >> >> -- Jack > >