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 15:05:51 +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 1344322615 30308 80.91.229.3 (7 Aug 2012 06:56:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2012 06:56:55 +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 08:56:55 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 1Sydij-0001IS-Vk for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Aug 2012 08:56:50 +0200 Original-Received: from localhost ([::1]:55828 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sydij-0007Ql-BJ for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Aug 2012 02:56:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SybzO-0000nN-7b for help-gnu-emacs@gnu.org; Tue, 07 Aug 2012 01:05:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SybzM-0006pP-QS for help-gnu-emacs@gnu.org; Tue, 07 Aug 2012 01:05:54 -0400 Original-Received: from mail-wi0-f169.google.com ([209.85.212.169]:51578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SybzM-0006oS-Jf for help-gnu-emacs@gnu.org; Tue, 07 Aug 2012 01:05:52 -0400 Original-Received: by wibhm2 with SMTP id hm2so1979090wib.0 for ; Mon, 06 Aug 2012 22:05:51 -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=z5WYhz3Ic9gOQfNXSdqSvWoTFUxm8IRhfr9WFPfCtac=; b=tyeoE84Niy+pGDpM6QhebzTKlFFXo74zht69FhBFvBJDvg8IqKVH57hOUWVTDzvWoR 27NxYvBDZHT690fjFq5SWizKKHzg5/xOH64kimbGV6A8Vq0m71z8af8K56tU05WWOYF4 mBjNeFMLSjjG3PWfXDn57YbYEclWTWWq6nRZxB5k7Udktl55QWeMKwskh342EUZdFZpm QGDL5fPCdNzbSYeaIFwb43MKlvtr3PLxjuAM0bArmbTV5FpomxQzH88uAXkz791vXaJR kmNCEtVCGqB4wQH0gem9Et/ovMWDiObgDvOkNLCZrzHDV8uhBJNU31IGd8IBZlbYtcOp ty+Q== Original-Received: by 10.180.89.65 with SMTP id bm1mr27912283wib.1.1344315951744; Mon, 06 Aug 2012 22:05:51 -0700 (PDT) Original-Received: by 10.194.93.196 with HTTP; Mon, 6 Aug 2012 22:05:51 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: YguXTbtAbYfNqJVsUGGWLmapsnM X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.169 X-Mailman-Approved-At: Tue, 07 Aug 2012 02:56:45 -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:86231 Archived-At: On Tue, Aug 7, 2012 at 2:49 PM, PJ Weisberg wrote: > 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? I am writing this as part of automake's elisp compilation refactoring that's going on at the moment: http://lists.gnu.org/archive/html/automake-patches/2012-07/msg00147.html is the start of the relevant thread. In an ideal world, we'd silence the loading messages to get proper silent-rules support (like how compiling C code these days just prints 'CC foo.c' or whatever, unless there are errors or warnings). Because the current elisp support calls emacs with -q, I'm hesitant to move to -Q in case it causes breakage in obscure cases. -- Jack