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 20:38:24 -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 1344310727 18075 80.91.229.3 (7 Aug 2012 03:38:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2012 03:38:47 +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 05:38:47 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 1Syacx-0002d3-Hu for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Aug 2012 05:38:39 +0200 Original-Received: from localhost ([::1]:39668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Syacw-0002p4-KI for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Aug 2012 23:38:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Syacp-0002ot-Jf for help-gnu-emacs@gnu.org; Mon, 06 Aug 2012 23:38:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Syaco-0005OQ-H0 for help-gnu-emacs@gnu.org; Mon, 06 Aug 2012 23:38:31 -0400 Original-Received: from mail-lb0-f169.google.com ([209.85.217.169]:34902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Syaco-0005Na-9Z for help-gnu-emacs@gnu.org; Mon, 06 Aug 2012 23:38:30 -0400 Original-Received: by lbon3 with SMTP id n3so2545369lbo.0 for ; Mon, 06 Aug 2012 20:38:25 -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=UqKY3LbRHaJjd8rEfztfKKQgnbetb9pXsFuSikk8SUA=; b=SUCXXvsCDZ1piT7v5OA3qcirNv+gg2WbHbzK8Bh/tJ9a6u586BLtGSeUFSjd5GP8zC UU2P6+0GvIURajVt796kdgcObCExWnlM5w4u0flxU0N8hw8naMWz31nPyMdmykqeZsw9 n1vO/TMxMYlkPd+pVtZOX4pf6WqHl/2QDwlA/rPPz+mj8VeHyIWHcGosShBp58CiyQfj bjF196sQ+Z5rv+dUtf4vQvqdOe4saDqEDLEn+feujGJ4UDrYNgBqO5cbWUpe3b0Ca9KT VX78nGloPiuZSmP6zcHKh2KTXa5XZwCUlDwjjd+5qBLJXDTU8t3IOdwzAGNW3UwEdkOS 8XVw== Original-Received: by 10.152.144.163 with SMTP id sn3mr12920012lab.37.1344310704960; Mon, 06 Aug 2012 20:38:24 -0700 (PDT) Original-Received: by 10.112.5.102 with HTTP; Mon, 6 Aug 2012 20:38:24 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: VVfxllmQQZpGxocYkoZh3GoS6L4 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.217.169 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:86228 Archived-At: On Mon, Aug 6, 2012 at 4:17 PM, Jack Kelly wrote: > 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. $EMACS -Q --batch --eval "(push \"/path/to/bar\" load-path)" --eval "(load \"MY-FILE\" nil t)" -PJ Gehm's Corollary to Clark's Law: Any technology distinguishable from magic is insufficiently advanced.