From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PJ Weisberg Newsgroups: gmane.emacs.help Subject: Re: Silently loading site files in -batch mode Date: Mon, 6 Aug 2012 21:49:54 -0700 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 X-Trace: dough.gmane.org 1344315007 13233 80.91.229.3 (7 Aug 2012 04:50:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2012 04:50:07 +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 Tue Aug 07 06:50:07 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 1Sybk7-00065k-7l for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Aug 2012 06:50:07 +0200 Original-Received: from localhost ([::1]:51126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sybk2-00058G-UM for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Aug 2012 00:50:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sybjx-00056t-5G for help-gnu-emacs@gnu.org; Tue, 07 Aug 2012 00:49:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sybjv-0001ud-Vg for help-gnu-emacs@gnu.org; Tue, 07 Aug 2012 00:49:57 -0400 Original-Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]:58780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sybjv-0001uM-Km for help-gnu-emacs@gnu.org; Tue, 07 Aug 2012 00:49:55 -0400 Original-Received: by lahd3 with SMTP id d3so960909lah.0 for ; Mon, 06 Aug 2012 21:49:54 -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; bh=Ox+0im5mHEJjrWxo86ZPh4xT/N6NGGcRvkK/NZy766M=; b=IY2xwVRZLR9X0eeLNfPEjqMZVVH+a2T0TFtZM1KIAEz9VTbePJV0/ZU22bBT81qNhS uDf4E4550tOE7LsfbodC3qoxooZbspudjcore/vDaXPCGn591Zil4gNYQKgEzwBoUOJ7 YHjjBRl9YKmyF4EzV21nzRgCW31QMAjhTU9ZOlsv2CWpeQvKECdw9nFPqUe27Nz2DALn 85duMXm+cIzW7/nw4Ptl1I8PXGKtoNcHXbZGoHhtb3bJyG1g91Trp9829nGIEqn+rPOT zQoe9CC60+Ghy4c2iCYbSr2uPWT9hik5E5LmgMjElrzZKmKjyL3uASZjxl4W8TeGtdn1 +0fQ== Original-Received: by 10.152.103.109 with SMTP id fv13mr13022628lab.33.1344314994382; Mon, 06 Aug 2012 21:49:54 -0700 (PDT) Original-Received: by 10.112.5.102 with HTTP; Mon, 6 Aug 2012 21:49:54 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: iAtiQ55keanmaBIg-8rRWNXHV2w X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.215.41 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:86230 Archived-At: On Mon, Aug 6, 2012 at 8:57 PM, Jack Kelly wrote: > On Tue, Aug 7, 2012 at 1:38 PM, PJ Weisberg wrote: >> On Mon, Aug 6, 2012 at 4:17 PM, Jack Kelly wrote: >>> 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. >> >> $EMACS -Q --batch --eval "(push \"/path/to/bar\" load-path)" --eval >> "(load \"MY-FILE\" nil t)" > > Indeed. But now we've come full circle: I can either get quiet > loading, or I have to replicate debian's weird startup changes, but I > can't easily get a change in before startup.el and get both. Which of Debian's weird startup changes does your code actually depend on? Are you sure you aren't just trying to anticipate a problem that doesn't actually exist? -PJ Gehm's Corollary to Clark's Law: Any technology distinguishable from magic is insufficiently advanced.