From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/53282 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.general Subject: How to make gnus read something besides .gnus in batch mode Date: Sun, 29 Jun 2003 10:24:31 -0700 Organization: Still searching... Sender: ding-owner@lists.math.uh.edu Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1056907499 23562 80.91.224.249 (29 Jun 2003 17:24:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 29 Jun 2003 17:24:59 +0000 (UTC) Original-X-From: ding-owner+M1826@lists.math.uh.edu Sun Jun 29 19:24:57 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Wfv7-00067j-00 for ; Sun, 29 Jun 2003 19:24:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19Wfus-0003KP-00; Sun, 29 Jun 2003 12:24:42 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19Wfuo-0003KK-00 for ding@lists.math.uh.edu; Sun, 29 Jun 2003 12:24:38 -0500 Original-Received: (qmail 72773 invoked by alias); 29 Jun 2003 17:24:37 -0000 Original-Received: (qmail 72768 invoked from network); 29 Jun 2003 17:24:37 -0000 Original-Received: from main.gmane.org (80.91.224.249) by sclp3.sclp.com with SMTP; 29 Jun 2003 17:24:37 -0000 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19WfuL-00064f-00 for ; Sun, 29 Jun 2003 19:24:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19WfuK-00064U-00 for ; Sun, 29 Jun 2003 19:24:08 +0200 Original-Lines: 39 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:vNWUH6D9Oxb3tJX78G8SK6ktmKs= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:53282 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:53282 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.