unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: torys.anderson@gmail.com, Emacs Help List <help-gnu-emacs@gnu.org>
Subject: RE: Limiting init loading when running --batch
Date: Wed, 4 Mar 2015 19:59:05 -0800 (PST)	[thread overview]
Message-ID: <7d55f9f3-8c16-49f4-b55c-8c0c75d4a59e@default> (raw)
In-Reply-To: <87pp8okti4.fsf@gmail.com>

> I use --batch as part of a shell script to export my orgmode agenda as an
> ICS file and upload it to a server where it is read by Google Calendar. But
> when I run batch, it loads my entire emacs (most of which is not necessary
> for this operation) and sometimes chokes on lines that are apparently
> incompatible. Is there a way to avoid loading the whole init file, or to
> prepend lines with something that would except them from batch runs?

You can test the variable `noninteractive' in your init file, and
load or invoke code conditionally, depending on the value.



  reply	other threads:[~2015-03-05  3:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-05  3:33 Limiting init loading when running --batch Tory S. Anderson
2015-03-05  3:59 ` Drew Adams [this message]
2015-03-05  4:00   ` Drew Adams
     [not found] <mailman.1357.1425526443.31049.help-gnu-emacs@gnu.org>
2015-03-05  4:16 ` Emanuel Berg

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=7d55f9f3-8c16-49f4-b55c-8c0c75d4a59e@default \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=torys.anderson@gmail.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).