all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jack Kelly <jack@jackkelly.name>
To: PJ Weisberg <pj@irregularexpressions.net>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: Silently loading site files in -batch mode
Date: Tue, 7 Aug 2012 15:05:51 +1000	[thread overview]
Message-ID: <CAEnY7O8B9c2kNuRrt3H3HKrowY3nBLVvCXWvm1X9APRCu5WHtg@mail.gmail.com> (raw)
In-Reply-To: <CAJsNXTk+wWqM-CMkCCDFa6i=EXLZQ1eK2k46y1Mm9P4YfNWpjw@mail.gmail.com>

On Tue, Aug 7, 2012 at 2:49 PM, PJ Weisberg <pj@irregularexpressions.net> wrote:
> On Mon, Aug 6, 2012 at 8:57 PM, Jack Kelly <jack@jackkelly.name> wrote:
>> On Tue, Aug 7, 2012 at 1:38 PM, PJ Weisberg <pj@irregularexpressions.net> wrote:
>>> On Mon, Aug 6, 2012 at 4:17 PM, Jack Kelly <jack@jackkelly.name> 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



      reply	other threads:[~2012-08-07  5:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-05 22:02 Silently loading site files in -batch mode Jack Kelly
2012-08-06  5:25 ` Andreas Röhler
2012-08-06  8:23   ` Jack Kelly
2012-08-06 10:33     ` Andreas Röhler
2012-08-06 15:55     ` Doug Lewan
2012-08-06 23:17       ` Jack Kelly
2012-08-07  3:38         ` PJ Weisberg
2012-08-07  3:57           ` Jack Kelly
2012-08-07  4:49             ` PJ Weisberg
2012-08-07  5:05               ` Jack Kelly [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEnY7O8B9c2kNuRrt3H3HKrowY3nBLVvCXWvm1X9APRCu5WHtg@mail.gmail.com \
    --to=jack@jackkelly.name \
    --cc=help-gnu-emacs@gnu.org \
    --cc=pj@irregularexpressions.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.