Gnus development mailing list
 help / color / mirror / Atom feed
From: Harry Putnam <reader@newsguy.com>
Subject: Re: How to make gnus read something besides .gnus in batch mode
Date: Tue, 01 Jul 2003 07:17:43 -0700	[thread overview]
Message-ID: <m31xxanxfc.fsf@newsguy.com> (raw)
In-Reply-To: <m3r85b9k5i.fsf@newsguy.com>

Harry Putnam <reader@newsguy.com> writes:

> Even with the kind help I've gotten on this, I'm still having
> problems with it.  I think the general mechanism is sound but have
> trouble figuring out why it fails, or partially fails.

It turned out to be a timing problem.  Gnus was getting invoked
before it knew which `gnus/lisp' to use and reverting to 5.9.0.

I found by loading this code a little sooner before gnus is called:
 (add-to-list 'load-path  "/usr/local/gnus/lisp")
     (setq gnus-init-file "/tmp/my_gnus_init.el") 

Fixed it all up.  Seems quite logical now but wasn't apparent what
was happening until I put this:

  (message gnus-version) 
in the single init file.

One final problem remains:

With this batch command running from cron:
emacs -q -no-site-file -batch -l $my_gnus_el \
 -f gnus-agent-batch

And the first few lines of $my_gnus.el:

  (add-to-list 'load-path  "/usr/local/gnus/lisp")
  (setq gnus-init-file "/tmp/my_gnus_init.el") 
  (load-library "gnus")
  (message gnus-version)
  [...]

With that command line.. and init file, the code actually gets loaded
twice, but doesn't seem to hurt anything.  And the right targets are
known in time.

The remaining promblem is that if I have closed gnus down for a time
and this batch job is run in the meantime.  When I start gnus, it
finds a dribble file and asks if it should load that. 

I'm pretty sure there is a line of code that will cause the batch job
to save everthing so that won't happen, but not sure what it would be.




      reply	other threads:[~2003-07-01 14:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-29 17:24 Harry Putnam
2003-06-29 20:47 ` Harry Putnam
2003-06-30  4:32   ` John Paul Wallington
2003-06-30  6:25     ` Harry Putnam
2003-06-30  7:01       ` John Paul Wallington
2003-06-30 15:07         ` Harry Putnam
2003-06-30 17:06           ` John Paul Wallington
2003-06-29 21:22 ` lawrence mitchell
2003-07-01  0:15 ` Harry Putnam
2003-07-01 14:17   ` Harry Putnam [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=m31xxanxfc.fsf@newsguy.com \
    --to=reader@newsguy.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 NNTP newsgroup(s).