Gnus development mailing list
 help / color / mirror / Atom feed
* How to make gnus read something besides .gnus in batch mode
@ 2003-06-29 17:24 Harry Putnam
  2003-06-29 20:47 ` Harry Putnam
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Harry Putnam @ 2003-06-29 17:24 UTC (permalink / raw)



I want to run batch commands but not read my standard .emacs .gnus
site-start.el.   I've learned from the past that things in any init
files that write to standard out like (message) can cause I/O errors.
But I like having some of those in there... so:

I compile an init file on the fly for gnus (or emacs) to read.  But
how can I aim gnus at only that file?

I've tinkered with the batch command shown in gnus manual:
 From manual version:
  emacs -batch -l ~/.emacs -f -l ~/.gnus.el gnus-agent-batch >/dev/null 2>&1

 To my version:
  emacs -q -no-site-file -batch -l ~/.my_gnus.el -f gnus-agent-batch

It still tries to load ~/.gnus:
  emacs -q -no-site-file -batch -l ~/.my_gnus.el -f gnus-agent-batch
  hello world -- ~/.gnus
Reading /home/reader/.newsrc-enews.newsguy.com.eld...
[...]

The formulation in the manual has a `-f -l  ~/.gnus.el' before 
agent-fetch but when I try that it give me this error:

   emacs -q -no-site-file -batch -l ~/.my_gnus.el -f -l \
    ~/.my_gnus.el  gnus-agent-batch
  Symbol's function definition is void: -l

So how can I tell the function `gnus-agent-batch' which code to load
and prevent it from automatically reading ~/.gnus.

I know about the behavior where if both ~/.gnus and ~/.gnus.el are
present then ~/.gnus.el is read, but that seems likely to lead to a
running gnus reading from ~/.gnus.el too.  

Even if I create it for the batch run, then destroy it.  Still seems
sooner or later it would get inadvertantly read by a possible running
gnus process during the batch fetch.




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-07-01 14:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-29 17:24 How to make gnus read something besides .gnus in batch mode 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 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).