[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Silently loading site files in -batch mode
From: |
PJ Weisberg |
Subject: |
Re: Silently loading site files in -batch mode |
Date: |
Mon, 6 Aug 2012 20:38:24 -0700 |
On Mon, Aug 6, 2012 at 4:17 PM, Jack Kelly <jack@jackkelly.name> 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.
- 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, 2012/08/06
- Re: Silently loading site files in -batch mode,
PJ Weisberg <=
- 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