[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Silently loading site files in -batch mode
From: |
Jack Kelly |
Subject: |
Re: Silently loading site files in -batch mode |
Date: |
Tue, 7 Aug 2012 09:17:02 +1000 |
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 <dougl@shubertticketing.com> wrote:
> 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=shubertticketing.com@gnu.org
>> [mailto:help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On
>> Behalf Of Jack Kelly
>> Sent: Monday, 2012 August 06 04:24
>> To: Andreas Röhler
>> 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öhler
>> <andreas.roehler@easy-emacs.de> 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
>
>
- Silently loading site files in -batch mode, Jack Kelly, 2012/08/05
- Re: Silently loading site files in -batch mode, Andreas Röhler, 2012/08/06
- Re: Silently loading site files in -batch mode, Jack Kelly, 2012/08/06
- Re: Silently loading site files in -batch mode, Andreas Röhler, 2012/08/06
- RE: Silently loading site files in -batch mode, Doug Lewan, 2012/08/06
- Re: Silently loading site files in -batch mode,
Jack Kelly <=
- Re: Silently loading site files in -batch mode, PJ Weisberg, 2012/08/06
- Re: Silently loading site files in -batch mode, Jack Kelly, 2012/08/07
- Re: Silently loading site files in -batch mode, PJ Weisberg, 2012/08/07
- Re: Silently loading site files in -batch mode, Jack Kelly, 2012/08/07