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 13:57:03 +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 X-Trace: dough.gmane.org 1344313856 5526 80.91.229.3 (7 Aug 2012 04:30:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2012 04:30:56 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: PJ Weisberg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 07 06:30:56 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 1SybRX-00009C-N9 for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Aug 2012 06:30:55 +0200 Original-Received: from localhost ([::1]:46200 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SybRW-0001zM-HP for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Aug 2012 00:30:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Syaun-00061s-Nn for help-gnu-emacs@gnu.org; Mon, 06 Aug 2012 23:57:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Syaum-0002nk-Hg for help-gnu-emacs@gnu.org; Mon, 06 Aug 2012 23:57:05 -0400 Original-Received: from mail-wg0-f49.google.com ([74.125.82.49]:37941) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Syaum-0002nf-BH for help-gnu-emacs@gnu.org; Mon, 06 Aug 2012 23:57:04 -0400 Original-Received: by wgbez12 with SMTP id ez12so2452429wgb.30 for ; Mon, 06 Aug 2012 20:57: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; bh=JplB4yOGs+jHjrvXkffkdmZCGYP+gznvq2rZbYmWp1U=; b=1G99x0hNdRV0VBqbl4yCgLHrOn5KNl/tHxojLPGoa7Sa/3R009dVJ033nuAA38IatN 9MawBqx/O/mPUhewm4yGFPkaXc5bZuI5vc8/InB5J/4LDNnojOmYUafZxFQXkqqIJjNu OWMjMqVRQDAkNLtl6aqPmvmU5NZrbSaAy/4cwTFJmiXEM0xlQ30YcH2i/9InWWlsi42A ipudugsWYFWtwbbx3Y0QnqVjbqiN1Gq1ZJPomDDwBcQ24BAKuTkMLMSh8v/xkX0LvO/r ExYSFvMRW9b961iPtFFjOpoVaW8ERqt0vb1kTAwLSmxaoW7ENc6aPdjqRa7F6nx1ZEPs DzTw== Original-Received: by 10.180.99.196 with SMTP id es4mr23769802wib.18.1344311823413; Mon, 06 Aug 2012 20:57:03 -0700 (PDT) Original-Received: by 10.194.93.196 with HTTP; Mon, 6 Aug 2012 20:57:03 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: PJQWEDeleEs8-SFHorZ4ok6Qupg X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.49 X-Mailman-Approved-At: Tue, 07 Aug 2012 00:30:47 -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:86229 Archived-At: 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. Thanks for the advice Andreas, Doug and PJ, but it's really starting to look I can't easily make emacs do what I want. -- Jack